Avoid traceback during shutdown

This commit is contained in:
Kovid Goyal 2026-08-07 12:02:00 +05:30
parent 2fb3bc13e4
commit b250667df5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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: