Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit committed Nov 19, 2024
1 parent f063a31 commit 1a7a4cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions gui/wxpython/wxplot/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ def OnCreateHist(self, event):
create a list of cell value and count/percent/area pairs. This is passed to
plot to create a line graph of the histogram.
"""
try:
self.SetCursor(StockCursor(wx.CURSOR_ARROW))
except Exception:
pass
self.SetCursor(StockCursor(wx.CURSOR_ARROW))

self.SetGraphStyle()
wx.BeginBusyCursor()
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/wxplot/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def OnStats(self, event):
statstr += "median: %f\n" % np.median(a)
statstr += "distance along transect: %f\n\n" % self.transect_length
message.append(statstr)
except (ValueError, TypeError, KeyError):
except (ValueError, TypeError, KeyError, IndexError):
pass

stats = PlotStatsFrame(self, id=wx.ID_ANY, message=message, title=title)
Expand Down

0 comments on commit 1a7a4cd

Please sign in to comment.