aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkaminokumo4
1 files changed, 3 insertions, 1 deletions
diff --git a/kaminokumo b/kaminokumo
index 0f537ec..a9c6340 100755
--- a/kaminokumo
+++ b/kaminokumo
@@ -51,7 +51,9 @@ def main():
if argparser.args.dbg:
try:
premain(argparser)
- except:
+ except Exception as e:
+ print(e.__doc__)
+ if e.message: print(e.message)
variables = globals().copy()
variables.update(locals())
shell = code.InteractiveConsole(variables)