|
|
@ -126,7 +126,7 @@ class Bot(irc.client.SimpleIRCClient, Logger):
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
self.log_i("Caught keyboard interrupt.")
|
|
|
|
self.log_i("Caught keyboard interrupt.")
|
|
|
|
except Exception as exc:
|
|
|
|
except Exception as exc:
|
|
|
|
self.log_c(f"Caught unhandled exception: {exc}")
|
|
|
|
self.log_c(f"Caught unhandled {type(exc)}: {exc}")
|
|
|
|
_, _, exc_traceback = sys.exc_info()
|
|
|
|
_, _, exc_traceback = sys.exc_info()
|
|
|
|
for line in traceback.format_tb(exc_traceback):
|
|
|
|
for line in traceback.format_tb(exc_traceback):
|
|
|
|
self.log_d(line.rstrip())
|
|
|
|
self.log_d(line.rstrip())
|
|
|
|