Skip to content

Commit fc8ace0

Browse files
fix: better exception handling frame
1 parent 4ef31d4 commit fc8ace0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DocToolsLLM/DocToolsLLM.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ def p(message: str) -> None:
137137
red(message)
138138
except Exception as err:
139139
print(message)
140-
p(exc_type)
141-
p(exc_value)
142140
[p(line) for line in traceback.format_tb(exc_traceback)]
141+
p(str(exc_value))
142+
p(str(exc_type))
143143
p("\n--verbose was used so opening debug console at the "
144144
"appropriate frame. Press 'c' to continue to the frame "
145145
"of this print.")

0 commit comments

Comments
 (0)