import sys
import threading
import time
+import traceback
try: # Python 3
import urllib.parse as urllib_parse
except ImportError: # Python 2
"irclib rejected a message to %s on %s "
"because: %s") % (
channel, self.target, UNICODE_TYPE(err)))
- LOG.debug(err.format_exc())
+ LOG.debug(traceback.format_exc())
time.sleep(ANTI_FLOOD_DELAY)
self.last_xmit = self.channels_joined[channel] = time.time()
LOG.info("XMIT_TTL bump (%s transmission) at %s" % (
LOG.error("exception %s in thread for %s" % (e, self.target))
# Maybe this should have its own status?
self.status = "expired"
- LOG.debug(e.format_exc())
+ LOG.debug(traceback.format_exc())
finally:
try:
# Make sure we don't leave any zombies behind