File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
synapseclient/models/mixins Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -1000,13 +1000,13 @@ async def main():
1000
1000
self , "sync_from_synapse_async"
1001
1001
)
1002
1002
1003
- if should_process_children and _progress_bar is None :
1004
- if recursive and not include_container_content :
1005
- raise ValueError (
1006
- "When recursive=True, include_container_content must also be True. "
1007
- "Setting recursive=True with include_container_content=False has no effect."
1008
- )
1003
+ if should_process_children and (recursive and not include_container_content ):
1004
+ raise ValueError (
1005
+ "When recursive=True, include_container_content must also be True. "
1006
+ "Setting recursive=True with include_container_content=False has no effect."
1007
+ )
1009
1008
1009
+ if should_process_children and _progress_bar is None :
1010
1010
with shared_download_progress_bar (
1011
1011
file_size = 1 ,
1012
1012
synapse_client = client ,
@@ -1032,11 +1032,6 @@ async def main():
1032
1032
if remaining > 0 :
1033
1033
progress_bar .update (remaining )
1034
1034
elif should_process_children :
1035
- if recursive and not include_container_content :
1036
- raise ValueError (
1037
- "When recursive=True, include_container_content must also be True. "
1038
- "Setting recursive=True with include_container_content=False has no effect."
1039
- )
1040
1035
await self ._process_children_with_progress (
1041
1036
client = client ,
1042
1037
normalized_types = normalized_types ,
You can’t perform that action at this time.
0 commit comments