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