From b250667df59f83dc0e1e01cabde873704c19bb87 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 7 Aug 2026 12:02:00 +0530 Subject: [PATCH] Avoid traceback during shutdown --- kitty/window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index 355a4585f..3361a22c2 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -1389,7 +1389,8 @@ class Window: if timer_id is not None: # this is a timer callback self.clear_progress_timer = 0 if self.progress.clear_progress(): - self.screen.set_progress(0, 0) + if hasattr(self, 'screen'): + self.screen.set_progress(0, 0) if (tab := self.tabref()) is not None: tab.update_progress() else: