From 460fe028ea4cd7366a9748fccc5be5c45b6738c4 Mon Sep 17 00:00:00 2001 From: raphael60650 Date: Thu, 17 Jun 2021 23:07:59 +0200 Subject: [PATCH] added extra new line for PEP --- source/log_error.py | 1 + source/patch_file.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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()