Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI: Fixed E722: bare 'except' in iscatt/ #4427

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading