Skip to content

Commit

Permalink
Do not assume there is a data source.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed May 6, 2024
1 parent e6dc9ed commit ade72be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tiled/client/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ def _sync_container(source, dest, copy_internal, copy_external):
metadata=dict(child_node.metadata),
specs=child_node.specs,
)
if (original_data_source.management != Management.external) and copy_internal:
if (
original_data_sources
and (original_data_sources[0].management != Management.external)
and copy_internal
):
_DISPATCH[child_node.structure_family](
child_node, node, copy_internal, copy_external
)
Expand Down

0 comments on commit ade72be

Please sign in to comment.