From 2e60a74f498a948ddc65b985fc1267ea6d84ad27 Mon Sep 17 00:00:00 2001 From: dece Date: Thu, 2 Dec 2021 12:22:43 +0100 Subject: [PATCH] unknown_command: log more, why is this broken --- edmond/plugins/unknown_command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edmond/plugins/unknown_command.py b/edmond/plugins/unknown_command.py index 5bc3c7d..8e12ca8 100644 --- a/edmond/plugins/unknown_command.py +++ b/edmond/plugins/unknown_command.py @@ -46,11 +46,13 @@ class UnknownCommandPlugin(Plugin): self.bot.log_d(f"Processing '{query}' with WolframAlpha.") try: response = self.client.query(query) - except: # Capture any exception as this lib is not very stable. + except Exception as exc: # unstable lib + self.bot.log_w(f"wolframalpha exception: {exc}") self.signal_failure(target) return if not response["@success"]: + self.bot.log_d("Call to WA succeeded but response is an error.") self.signal_failure(target) return