aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-01-10 03:25:50 +0100
committerGravatar Numerlor <[email protected]>2021-01-10 06:16:10 +0100
commit383e4e993c1bc9d31562748cc55ab4c468bcdd8d (patch)
treee9443b185c054e1d936d2451e281e8e705eaed96
parentRefresh inventories when the redis cache is cleared (diff)
Set exception on future
Without the exception set, to the user the bot would fail silently if an exception was handled here
-rw-r--r--bot/exts/info/doc/_cog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py
index a78916d4a..3f7604072 100644
--- a/bot/exts/info/doc/_cog.py
+++ b/bot/exts/info/doc/_cog.py
@@ -168,8 +168,9 @@ class CachedParser:
)
if markdown is not None:
await doc_cache.set(item, markdown)
- except Exception:
+ except Exception as e:
log.exception(f"Unexpected error when handling {item}")
+ future.set_exception(e)
else:
future.set_result(markdown)
await asyncio.sleep(0.1)