diff --git a/WorkbenchConfig.py b/WorkbenchConfig.py index 5209ef8..2b27b85 100644 --- a/WorkbenchConfig.py +++ b/WorkbenchConfig.py @@ -287,7 +287,7 @@ def get_default_config(self): "allow_csv_value_templates_if_field_empty": [], "remind_user_to_run_check": False, "media_type_by_media_use": False, - "paged_content_ignore_files": ["Thumbs.db"] + "paged_content_ignore_files": ["Thumbs.db"], } # Tests validity and existence of configuration file path. diff --git a/workbench_utils.py b/workbench_utils.py index ccda8e4..018a189 100644 --- a/workbench_utils.py +++ b/workbench_utils.py @@ -3649,7 +3649,9 @@ def check_input(config, args): print("Warning: " + message) logging.warning(message) for page_file_name in page_files: - if page_file_name.strip().lower() not in [fn.strip().lower() for fn in config["paged_content_ignore_files"]]: + if page_file_name.strip().lower() not in [ + fn.strip().lower() for fn in config["paged_content_ignore_files"] + ]: if config["paged_content_sequence_separator"] not in page_file_name: message = ( "Page file " @@ -8630,7 +8632,9 @@ def create_children_from_directory(config, parent_csv_record, parent_node_id): required_fields = get_required_bundle_fields(config, "node", config["content_type"]) for page_file_name in page_files: - if page_file_name.strip().lower() in [fn.strip().lower() for fn in config["paged_content_ignore_files"]]: + if page_file_name.strip().lower() in [ + fn.strip().lower() for fn in config["paged_content_ignore_files"] + ]: continue filename_without_extension = os.path.splitext(page_file_name)[0]