diff --git a/source/log_error.py b/source/log_error.py index e89b929..503f4f5 100644 --- a/source/log_error.py +++ b/source/log_error.py @@ -1,6 +1,7 @@ import traceback from tkinter import messagebox + def log_error(self): error = traceback.format_exc() with open("./error.log", "a") as f: f.write(f"---\n{error}\n") diff --git a/source/patch_file.py b/source/patch_file.py index 6cf0b67..256e68c 100644 --- a/source/patch_file.py +++ b/source/patch_file.py @@ -30,7 +30,6 @@ def patch_file(self): except: self.log_error() finally: self.Progress(show=False) - t = Thread(target=func) t.setDaemon(True) t.start()