From 92a5163f690b8700fd011678439db2435c175531 Mon Sep 17 00:00:00 2001 From: Arohan Ajit Date: Fri, 17 Jan 2025 12:48:12 -0500 Subject: [PATCH] removed pyDeadObjectError --- gui/wxpython/startup/locdownload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/wxpython/startup/locdownload.py b/gui/wxpython/startup/locdownload.py index fd2f174df14..1eb1b6f6e23 100644 --- a/gui/wxpython/startup/locdownload.py +++ b/gui/wxpython/startup/locdownload.py @@ -96,8 +96,8 @@ def write(self, string): heigth = self._get_heigth(string) wx.CallAfter(self.out.SetLabel, string) self._resize(heigth) - except wx.PyDeadObjectError: - # window closed -> PyDeadObjectError + except (RuntimeError, AttributeError): + # window closed or destroyed pass def flush(self):