mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
always return list
This commit is contained in:
parent
18990b52c0
commit
2cda5b44d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue