From: kaliko Date: Fri, 14 Nov 2014 18:29:50 +0000 (+0100) Subject: Fixed traceback logging X-Git-Tag: 0.1.0~49 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=e5063f532aeb1876b012586481413723605d1fc5;p=sid.git Fixed traceback logging --- diff --git a/sid/sid.py b/sid/sid.py index dd768c1..7c3a5c7 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -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')