Skip to content

Commit

Permalink
[graph-] catch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Nov 1, 2023
1 parent 498688e commit 8e25969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions visidata/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ def reload(self):
attr = self.plotColor(k)
self.point(graph_x, graph_y, attr, row)
nplotted += 1
except Exception:
except Exception as e:
nerrors += 1
if options.debug:
raise
if vd.options.debug:
vd.exceptionCaught(e)


vd.status('loaded %d points (%d errors)' % (nplotted, nerrors))
Expand Down

0 comments on commit 8e25969

Please sign in to comment.