Browse Source

Restore original trace method, move full stack trace to another method

dave/xdcc
dpedu 7 years ago
parent
commit
bcdfc87a1b
  1. 7
      pyircbot/irccore.py

7
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"

Loading…
Cancel
Save