diff --git a/DrBotIRC.py b/DrBotIRC.py index 150f773..71fda73 100644 --- a/DrBotIRC.py +++ b/DrBotIRC.py @@ -205,10 +205,8 @@ class DrBotIRC(irclib.IRC): if handler[1](connection, event) == "NO MORE": return except Exception as e: - exc_type, exc_value, exc_traceback = sys.exc_info() self.log.error("exception floated up to DrBotIrc!") - self.log.error(exc_type + ": " + exc_value) - self.log.error(exc_traceback) + self.log.exception(e) def xmlrpc_register_function(self, func, name): """Add a method to the XML-RPC interface."""