1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-04 23:40:25 +08:00

better error handling

This commit is contained in:
Escartem
2023-11-24 14:51:52 +01:00
parent f4a160ab83
commit 718fa457ba
2 changed files with 24 additions and 11 deletions

View File

@@ -321,12 +321,14 @@ def main():
print(f"[{curr}/{steps}] Cleaning up")
except Exception as e:
print("")
print("An error occured while processing this file ! Skipping to the next one, details of the error bellow :")
print(f"Line {sys.exc_info()[-1].tb_lineno}, {e}")
# all files processed
if os.path.exists("temp") and skips[8] != "1":
shutil.rmtree("temp")
print("-"*30)
print("Done extracting everything !")
if __name__ == "__main__":