From 2cda5b44d6919e83e2c42fd7d58266b381130aef Mon Sep 17 00:00:00 2001 From: InspectorCaracal <51038201+InspectorCaracal@users.noreply.github.com> Date: Wed, 27 Jul 2022 22:09:34 -0600 Subject: [PATCH] always return list --- evennia/commands/default/building.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index feac9de984..ccfe33f5b0 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -1927,7 +1927,7 @@ class CmdSetAttribute(ObjManipCommand): if self.rhs is None: # no = means we inspect the attribute(s) if not attrs: - attrs = [attr.key for attr in obj.attributes.get(category=None, return_obj=True)] + attrs = [attr.key for attr in obj.attributes.get(category=None, return_obj=True, return_list=True)] for attr in attrs: if not self.check_attr(obj, attr, category): continue