always return list

This commit is contained in:
InspectorCaracal 2022-07-27 22:09:34 -06:00 committed by GitHub
parent 18990b52c0
commit 2cda5b44d6

View file

@ -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