aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/info/doc/_batch_parser.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/bot/exts/info/doc/_batch_parser.py b/bot/exts/info/doc/_batch_parser.py
index d88b32208..a809fed78 100644
--- a/bot/exts/info/doc/_batch_parser.py
+++ b/bot/exts/info/doc/_batch_parser.py
@@ -141,14 +141,9 @@ class BatchParser:
await doc_cache.set(item, markdown)
else:
scheduling.create_task(self.stale_inventory_notifier.send_warning(item))
- except Exception as e:
+ except Exception:
log.exception(f"Unexpected error when handling {item}")
- if markdown is not None:
- future.set_result(markdown)
- else:
- future.set_exception(e)
- else:
- future.set_result(markdown)
+ future.set_result(markdown)
del self._item_futures[item]
await asyncio.sleep(0.1)
finally: