Skip to content

Commit

Permalink
[main-] format vd_cli exceptions to be caretless
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed Dec 24, 2024
1 parent 4df7308 commit aa4285b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion visidata/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import warnings
import builtins # to override print

from visidata import vd, options, run, BaseSheet, AttrDict
from visidata import vd, options, run, BaseSheet, AttrDict, stacktrace
from visidata import Path
from visidata.settings import _get_config_file
import visidata
Expand Down Expand Up @@ -392,6 +392,9 @@ def vd_cli():
print(e)
if options.debug:
raise
except Exception as e:
for l in stacktrace(): #show the stack trace without carets
print(l)

sys.stderr.flush()
sys.stdout.flush()
Expand Down

0 comments on commit aa4285b

Please sign in to comment.