Skip to content

Commit

Permalink
[import-] use variable safe_error properly
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Oct 12, 2023
1 parent 91e72d7 commit cdee695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visidata/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ def iterdispvals(sheet, *cols, format=False):

except Exception as e:
vd.exceptionCaught(e)
dispval = sheet.options_safe_error or str(e)
dispval = options_safe_error or str(e)

try:
for t in transforms:
if dispval is None:
break
elif isinstance(dispval, TypedExceptionWrapper):
dispval = sheet.options_safe_error or str(dispval)
dispval = options_safe_error or str(dispval)
break
else:
dispval = t(dispval)
Expand Down

0 comments on commit cdee695

Please sign in to comment.