From cdee6957316a4a82f41c0b43d060fbfa47bdf9e0 Mon Sep 17 00:00:00 2001 From: anjakefala Date: Wed, 11 Oct 2023 17:54:30 -0700 Subject: [PATCH] [import-] use variable safe_error properly --- visidata/save.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/visidata/save.py b/visidata/save.py index 3f77174dc..8c70b253f 100644 --- a/visidata/save.py +++ b/visidata/save.py @@ -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)