Skip to content

Commit c939082

Browse files
committed
Fix regression in refresh
1 parent 9cf9111 commit c939082

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tiled/client/base.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,11 @@ def refresh(self):
184184
)
185185
).json()
186186
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-
)
187+
if self.structure_family != StructureFamily.container:
188+
structure_type = STRUCTURE_TYPES[self.structure_family]
189+
self._structure = structure_type.from_json(
190+
self._item["attributes"]["structure"]
191+
)
191192
return self
192193

193194
@property

0 commit comments

Comments
 (0)