aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/info/doc/_batch_parser.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_batch_parser.py b/bot/exts/info/doc/_batch_parser.py
index 45ca17e5e..f5e16a60b 100644
--- a/bot/exts/info/doc/_batch_parser.py
+++ b/bot/exts/info/doc/_batch_parser.py
@@ -141,6 +141,7 @@ class BatchParser:
try:
while self._queue:
item, soup = self._queue.pop()
+ markdown = None
try:
if (future := self._item_futures[item]).done():
# Some items are present in the inventories multiple times under different symbol names,
@@ -154,7 +155,10 @@ class BatchParser:
scheduling.create_task(self.stale_inventory_notifier.send_warning(item))
except Exception as e:
log.exception(f"Unexpected error when handling {item}")
- future.set_exception(e)
+ if markdown is not None:
+ future.set_result(markdown)
+ else:
+ future.set_exception(e)
else:
future.set_result(markdown)
await asyncio.sleep(0.1)