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"