Skip to content

Commit

Permalink
Merge pull request #152 from mole99/shell-fix
Browse files Browse the repository at this point in the history
Print traceback on error inside FABulous Shell
  • Loading branch information
KelvinChung2000 authored Feb 16, 2024
2 parents 84edbe5 + f59f4b9 commit 8abb940
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FABulous.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import tkinter as tk
from pathlib import PurePosixPath, PureWindowsPath
import platform
import traceback
readline.set_completer_delims(' \t\n')
histfile = ""
histfile_size = 1000
Expand Down Expand Up @@ -274,6 +275,7 @@ def onecmd(self, line):
try:
return super().onecmd(line)
except:
print(traceback.format_exc())
return False

# override the emptyline method, so empty command will just do nothing
Expand Down

0 comments on commit 8abb940

Please sign in to comment.