mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 23:47:16 +02:00
always return list
This commit is contained in:
parent
3e0c7d3551
commit
b0990c2ec9
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