Skip to content

Commit

Permalink
wxGUI: Fix flake8 e722 bare except warnings (#4929)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Jan 15, 2025
1 parent 0c59bbc commit 0b4db05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/wxpython/vdigit/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def OnEndEdit(self, event):
self.cats[self.fid][layerNew] = []
self.cats[self.fid][layerNew].append(catNew)
self.cats[self.fid][layerOld].remove(catOld)
except:
except (KeyError, ValueError, AttributeError):
event.Veto()
self.list.SetItem(itemIndex, 0, str(layerNew))
self.list.SetItem(itemIndex, 1, str(catNew))
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/vdigit/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _createGeneralPage(self, notebook):
self.snappingUnit.SetSelection(
UserSettings.Get(group="vdigit", key="snapping", subkey="unit")
)
except:
except KeyError:
self.snappingUnit.SetSelection(0)
self.snappingUnit.Bind(wx.EVT_CHOICE, self.OnChangeSnappingUnits)
flexSizer.Add(text, proportion=0, flag=wx.ALIGN_CENTER_VERTICAL)
Expand Down

0 comments on commit 0b4db05

Please sign in to comment.