From 3a88f5516ac5fd5b4812156948cf21196a06aa96 Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Sat, 6 Oct 2012 17:12:54 +0200 Subject: [PATCH] Now prints exception messages on erros --- brathuhn.py | 1 + tell.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/brathuhn.py b/brathuhn.py index 9ba3605..62a5297 100644 --- a/brathuhn.py +++ b/brathuhn.py @@ -262,6 +262,7 @@ def loop(): print "-------ERROR OCCURED-------" exc_type, exc_value, exc_traceback = sys.exc_info() traceback.print_tb(exc_traceback, file=sys.stdout) + traceback.print_exc(file=sys.stdout) if not cl.connected: s=MIN_CONNECT_INTERVAL-(time.time()-last_connect) if s>0: diff --git a/tell.py b/tell.py index 9735559..a61413a 100644 --- a/tell.py +++ b/tell.py @@ -41,10 +41,10 @@ def tell(msg, args): def tellCB(nick, msg, status): global store + print "here" if(status != brathuhn.STATUS_JOIN): return - user = nick.getResource() rem = [] for l in store: