From 5e48c0553054f44659498f632ca0a31d4afd7f45 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 01:08:56 +0100 Subject: [PATCH] core/MMBot.py --- core/MMBot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/MMBot.py b/core/MMBot.py index 275ed86..633631b 100644 --- a/core/MMBot.py +++ b/core/MMBot.py @@ -227,9 +227,9 @@ class MMBot(): try: if self.wsmodules[evtype][module_name].on_WS_EVENT(event_data): self.command_stats_inc("ws::"+evtype+"::"+module_name) - except Exception: - exctxt = "".join(traceback.format_exc()) - logger.error(exctxt) + except Exception as e: + self.bot.debug_chan("##### Exception in ``"+evtype+"::"+module_name+"``: ``"+repr(e)+"``\n# :boom::boom::boom::boom::boom:") + logger.exception("websocket_handler(): Exception in: %s\nEvent-data:%s", evtype+"::"+module_name, pprint.pformat(event_data)) ################### -- 2.43.0