diff --git a/main.py b/main.py index 1a53e5b..e74d3f6 100644 --- a/main.py +++ b/main.py @@ -179,7 +179,11 @@ def run_renamer(self, root_path_list: list[str]): # 执行重命名 for root_path in root_path_list: - renamer.rename(root_path) + try: + renamer.rename(root_path) + except Exception as err: + Renamer.logger.error(f'[Unexpected exception] {str(err)}\n') + break self.__before_worker_thread_end()