Skip to content

Commit

Permalink
MNT #905 handle known exception
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Feb 26, 2024
1 parent 7e1a672 commit 8a43ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apstools/callbacks/scan_signal_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def report(self):
for k in keys:
try:
v = getattr(stats, k)
except ZeroDivisionError:
except (ValueError, ZeroDivisionError):
v = 0
row.append(v)
table.addRow(row)
Expand All @@ -175,7 +175,7 @@ def report(self):
for stats in self._registers.values():
try:
v = getattr(stats, k)
except ZeroDivisionError:
except (ValueError, ZeroDivisionError):
v = 0
row.append(v)
table.addRow(row)
Expand Down

0 comments on commit 8a43ecb

Please sign in to comment.