diff options
author | 2021-03-05 02:31:32 +0100 | |
---|---|---|
committer | 2021-03-05 02:46:41 +0100 | |
commit | c3a516ce6d69e774c3a0d441b0ca2b4a1af774be (patch) | |
tree | 55d43c6f54ea9a7f233c5ff03818847d4889f024 | |
parent | Set future result to None on exceptions (diff) |
Add comment explaining purpose of create_task over await
-rw-r--r-- | bot/exts/info/doc/_batch_parser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/info/doc/_batch_parser.py b/bot/exts/info/doc/_batch_parser.py index a809fed78..da0984a91 100644 --- a/bot/exts/info/doc/_batch_parser.py +++ b/bot/exts/info/doc/_batch_parser.py @@ -140,6 +140,7 @@ class BatchParser: if markdown is not None: await doc_cache.set(item, markdown) else: + # Don't wait for this coro as the parsing doesn't depend on anything it does. scheduling.create_task(self.stale_inventory_notifier.send_warning(item)) except Exception: log.exception(f"Unexpected error when handling {item}") |