]> kaliko git repositories - sid.git/commitdiff
Fixed traceback logging
authorkaliko <kaliko@azylum.org>
Fri, 14 Nov 2014 18:29:50 +0000 (19:29 +0100)
committerkaliko <kaliko@azylum.org>
Fri, 14 Nov 2014 18:29:50 +0000 (19:29 +0100)
sid/sid.py

index dd768c17c1f929664020c19564d1347b124f0c06..7c3a5c7a6db9540b8fffb65dd3e4e240dbf759f1 100644 (file)
@@ -105,7 +105,7 @@ class MUCBot(sleekxmpp.ClientXMPP):
         try:
             reply = self.commands[cmd](msg, args)
         except Exception as err:
-            reply = traceback.format_exc(err)
+            reply = ''.join(traceback.format_exc())
             self.log.exception('An error occurred processing: {0}: {1}'.format(body, reply))
         self.send_message(mto=msg['from'].bare, mbody=reply, mtype='groupchat')