From 65cbb264ef80a06081fe040018bc0c3bde434692 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Tue, 23 Jul 2024 18:10:12 +0330 Subject: [PATCH] add exception handling to update_all --- dmeta/functions.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dmeta/functions.py b/dmeta/functions.py index 9af8036..6a2aa7d 100644 --- a/dmeta/functions.py +++ b/dmeta/functions.py @@ -128,12 +128,11 @@ def update_all(config_file_name): """ path = os.getcwd() dir_list = os.listdir(path) - microsoft_files = [] - for item in dir_list: - if get_microsoft_format(item) is not None: - microsoft_files.append(item) - for microsoft_file in microsoft_files: - update(config_file_name, microsoft_file) + for file in dir_list: + try: + update(config_file_name, file) + except DMetaBaseError as e: + pass def dmeta_help():