Skip to content

Commit

Permalink
wxGUI: Fixed E722: bare 'except' in iscatt/ (#4427)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Oct 2, 2024
1 parent 3f61cd7 commit 61407f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ per-file-ignores =
doc/gui/wxpython/example/dialogs.py: F401
gui/scripts/d.wms.py: E501
gui/wxpython/image2target/*: F841, E722
gui/wxpython/image2target/g.gui.image2target.py: E501
gui/wxpython/iscatt/*: F841, E722, F405, F403
gui/wxpython/image2target/g.gui.image2target.py: E501, F841
gui/wxpython/iscatt/*: F841, F405, F403
gui/wxpython/lmgr/frame.py: F841, E722
# layertree still includes some formatting issues (it is ignored by Black)
gui/wxpython/lmgr/layertree.py: E722, E266, W504, E225
Expand Down
4 changes: 2 additions & 2 deletions gui/wxpython/iscatt/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def _renderscattplts(self, scatt_ids, cats, cats_attrs):
try:
self.cat_ids.remove(c)
scatt_dt[c]["render"] = True
except:
except ValueError:
scatt_dt[c]["render"] = False

if self.scatt_mgr.pol_sel_mode[0]:
Expand Down Expand Up @@ -674,7 +674,7 @@ def ChangePosition(self, cat_id, new_pos):

try:
pos = self.cats_ids.index(cat_id)
except:
except ValueError:
return False

if pos > new_pos:
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/iscatt/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def CursorPlotMove(self, x, y, scatt_id):
x = int(round(x))
y = int(round(y))
coords = True
except:
except TypeError:
coords = False

pane = self._getPane(scatt_id)
Expand Down

0 comments on commit 61407f0

Please sign in to comment.