def check_has_attr(self, obj, attr):
        """
        Hook for overriding on subclassed commands. Do any preprocessing
        required and verify an object has an attribute.
        """
        if not obj.attributes.has(attr):
            self.caller.msg(
                "%s doesn't have an attribute %s."
                + (obj.name, attr))
            return False
        return True
dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py/CmdCpAttr.check_has_attr/operator `%` -> `+`