From e5063f532aeb1876b012586481413723605d1fc5 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 14 Nov 2014 19:29:50 +0100 Subject: [PATCH] Fixed traceback logging --- sid/sid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.39.5