Skip to content

Commit

Permalink
wxGUI: Fix bare except in graphics.py (#4808)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Dec 16, 2024
1 parent 8bfcb8a commit 3f405b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ per-file-ignores =
gui/wxpython/mapswipe/g.gui.mapswipe.py: E501
gui/wxpython/mapwin/base.py: E722
gui/wxpython/mapwin/buffered.py: E722
gui/wxpython/mapwin/graphics.py: E722
gui/wxpython/timeline/g.gui.timeline.py: E501
# Generated file
gui/wxpython/menustrings.py: E501
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/mapwin/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def _clearId(self, drawid):
"""Clears old object before drawing new object."""
try:
self.pdc.ClearId(drawid)
except:
except (wx.PyDeadObjectError, KeyError):
pass


Expand Down

0 comments on commit 3f405b9

Please sign in to comment.