From e15d9b3126293f0a18ee3a89fcd0fc5a885b497c Mon Sep 17 00:00:00 2001 From: Ircama Date: Fri, 20 Sep 2024 10:47:35 +0200 Subject: [PATCH] Fix missing newline in warning message --- ui.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ui.py b/ui.py index c37392c..6badd8b 100644 --- a/ui.py +++ b/ui.py @@ -622,11 +622,11 @@ class EpsonPrinterUI(tk.Tk): self.show_status_text_view() if isinstance(e, TimeoutError): self.status_text.insert( - tk.END, f"[ERROR] printer is unreachable or offline." + tk.END, f"[ERROR] printer is unreachable or offline.\n" ) else: self.status_text.insert( - tk.END, f"[ERROR] {e}\n{traceback.format_exc()}" + tk.END, f"[ERROR] {e}\n{traceback.format_exc()}\n" ) def get_po_mins(self, cursor=True): @@ -660,10 +660,6 @@ class EpsonPrinterUI(tk.Tk): tk.END, f"[INFO] Power off timer: {po_timer} minutes.\n" ) self.po_timer_var.set(po_timer) - except TimeoutError: - self.status_text.insert( - tk.END, f"[ERROR] printer is unreachable or offline" - ) except Exception as e: self.handle_printer_error(e) finally: