Skip to content

Commit b87097b

Browse files
committed
return correct type for empty activities.objects
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent fe3ea83 commit b87097b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nc_py_api/activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def objects(self) -> dict:
112112
.. note:: They are stored in objects as key-value pairs of the object_id and the object_name:
113113
{ object_id: object_name}
114114
"""
115-
return self._raw_data["objects"]
115+
return self._raw_data["objects"] if isinstance(self._raw_data["objects"], dict) else {}
116116

117117
@property
118118
def link(self) -> str:

0 commit comments

Comments
 (0)