From bcdfc87a1b4768247787a3277f30854b0f9df6c3 Mon Sep 17 00:00:00 2001 From: dpedu Date: Sat, 8 Aug 2015 21:42:31 -0700 Subject: [PATCH] Restore original trace method, move full stack trace to another method --- pyircbot/irccore.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyircbot/irccore.py b/pyircbot/irccore.py index c69ab9d..f531aa4 100644 --- a/pyircbot/irccore.py +++ b/pyircbot/irccore.py @@ -278,7 +278,12 @@ class IRCCore(asynchat.async_chat): return ob @staticmethod - def trace(): + def trace(): + """Return the stack trace of the bot as a string""" + return traceback.format_exc() + + @staticmethod + def fulltrace(): """Return the stack trace of the bot as a string""" result = "" result += "\n*** STACKTRACE - START ***\n"