Compare commits
2 commits
73e3dedd43
...
2e60a74f49
Author | SHA1 | Date | |
---|---|---|---|
dece | 2e60a74f49 | ||
dece | 88969abbbf |
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"host": "irc.freenode.net",
|
||||
"host": "irc.libera.chat",
|
||||
"port": 6667,
|
||||
"nick": "edm0nd",
|
||||
"alternative_nicks": ["edmon", "edmond"],
|
||||
"nick": "edm0nd-ex",
|
||||
"alternative_nicks": ["edmon-ex", "edmond-ex"],
|
||||
"channels": ["#idi0crates"],
|
||||
"speak_delay": 0.5,
|
||||
"storage_file": "storage.json",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue