unknown_command: log more, why is this broken
This commit is contained in:
parent
88969abbbf
commit
2e60a74f49
|
@ -46,11 +46,13 @@ class UnknownCommandPlugin(Plugin):
|
||||||
self.bot.log_d(f"Processing '{query}' with WolframAlpha.")
|
self.bot.log_d(f"Processing '{query}' with WolframAlpha.")
|
||||||
try:
|
try:
|
||||||
response = self.client.query(query)
|
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)
|
self.signal_failure(target)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not response["@success"]:
|
if not response["@success"]:
|
||||||
|
self.bot.log_d("Call to WA succeeded but response is an error.")
|
||||||
self.signal_failure(target)
|
self.signal_failure(target)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue