mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 01:06:32 +01:00
Minor fix to sync attrs to make it less stupid.
This commit is contained in:
parent
7d78eda3fd
commit
6cf005a645
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ class Session(object):
|
|||
the keys given by self._attrs_to_sync.
|
||||
|
||||
"""
|
||||
return {attr: getattr(self, attr, None) for attr in settings.SESSION_SYNC_ATTRS}
|
||||
return {attr: getattr(self, attr) for attr in settings.SESSION_SYNC_ATTRS if hasattr(self, attr)}
|
||||
|
||||
def load_sync_data(self, sessdata):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue