We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf9111 commit c939082Copy full SHA for c939082
tiled/client/base.py
@@ -184,10 +184,11 @@ def refresh(self):
184
)
185
).json()
186
self._item = content["data"]
187
- structure_type = STRUCTURE_TYPES[self.structure_family]
188
- self._structure = structure_type.from_json(
189
- self._item["attributes"]["structure"]
190
- )
+ if self.structure_family != StructureFamily.container:
+ structure_type = STRUCTURE_TYPES[self.structure_family]
+ self._structure = structure_type.from_json(
+ self._item["attributes"]["structure"]
191
+ )
192
return self
193
194
@property
0 commit comments