From 81b1797144ca7b3638a4546b4febc940241b0083 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Mon, 30 Apr 2007 14:33:22 +0000 Subject: [PATCH] Finished moving error trapping to cmdhandler.py. No need to do any exception handling on a per-command basis anymore. --- cmdhandler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmdhandler.py b/cmdhandler.py index c0a823692..43cd5f238 100755 --- a/cmdhandler.py +++ b/cmdhandler.py @@ -71,7 +71,9 @@ def handle(cdat): try: cmd(cdat) except: - session.msg("Untrapped error: %s" % (format_exc(),)) + session.msg("Untrapped error, please file a bug report:\n%s" % (format_exc(),)) + functions_general.print_errmsg("Untrapped error, evoker %s: %s" % + (session, format_exc())) return if session.logged_in: