diff --git a/src/anki_hsk_creator/api.py b/src/anki_hsk_creator/api.py index a0f2dd2..424fffa 100644 --- a/src/anki_hsk_creator/api.py +++ b/src/anki_hsk_creator/api.py @@ -313,7 +313,7 @@ def folder_proccess(process_folder: ProcessFolder, language_id: str): line.strip() for line in file.readlines() if line.strip() ] results[process_file] = completed_process(text_lines, process_file) - except AttributeError, AssertionError: + except (AttributeError, AssertionError): print(f"Error procesing {process_file} with language {language_id}") continue return output_anki_package(process_folder, results)