Pinned fallback returns array vs obj

This commit is contained in:
James Barnsley
2020-08-23 13:13:17 +12:00
parent 37b653d6d5
commit 797fdfe0da

View File

@ -84,7 +84,10 @@ class IrisCore(pykka.ThreadingActor):
f.close()
return content
except Exception:
return {}
if name == "pinned":
return []
else:
return {}
##
# Save dict object to disk
@ -829,7 +832,7 @@ class IrisCore(pykka.ThreadingActor):
##
# Server-side data assets
#
# These functions are used internally to store data packets locally for all users to access
# These functions are used internally to store data locally for all users to access
##
def get_data(self, name, *args, **kwargs):