File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -331,11 +331,13 @@ def __init__(self, config):
331
331
else :
332
332
transform = None
333
333
334
+ # Note "rebuild_manifest" is not a config, its a hack for rebuild_manifest mode
335
+ # to ensure we don't use the manifest we believe is corrupt.
336
+ rebuild_manifest = config ["rebuild_manifest" ] if "rebuild_manifest" in config else False # noqa: SIM401
337
+
334
338
if config ["data_set" ]["filter_catalog" ]:
335
339
filter_catalog = Path (config ["data_set" ]["filter_catalog" ])
336
- elif not config .get ("rebuild_manifest" , False ):
337
- # Note "rebuild_manifest" is not a config, its a hack for rebuild_manifest mode
338
- # to ensure we don't use the manifest we believe is corrupt.
340
+ elif not rebuild_manifest :
339
341
filter_catalog = Path (config ["general" ]["data_dir" ]) / Downloader .MANIFEST_FILE_NAME
340
342
if not filter_catalog .exists ():
341
343
filter_catalog = False
You can’t perform that action at this time.
0 commit comments