Skip to content

Commit

Permalink
removed pyDeadObjectError
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit authored and Arohan Ajit committed Jan 17, 2025
1 parent fc9418d commit 92a5163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/startup/locdownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 92a5163

Please sign in to comment.