

def check_has_attr(self, obj, attr):
    '\n        Hook for overriding on subclassed commands. Do any preprocessing\n        required and verify an object has an attribute.\n        '
    if (not obj.attributes.has(attr)):
        self.caller.msg(("%s doesn't have an attribute %s." % (self.name, attr)))
        return False
    return True

dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py CmdCpAttr.check_has_attr/VarMisuse@41/105 `obj`->`self`