diff options
| author | 2021-01-06 18:27:10 +0100 | |
|---|---|---|
| committer | 2021-01-09 20:11:15 +0100 | |
| commit | cbd84558ef4e5e89ce032c8b5d47f1bb94b89ba0 (patch) | |
| tree | 65d263dc62bd35851b8f43d500142acae4eea3bd | |
| parent | Remove redundant variable (diff) | |
Do not attempt to set cache values for symbols that were not found
| -rw-r--r-- | bot/exts/info/doc/_cog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index 11d1dc9ad..df5d417d7 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -144,7 +144,8 @@ class CachedParser: None, partial(get_symbol_markdown, soup, item), ) - await doc_cache.set(item, markdown) + if markdown is not None: + await doc_cache.set(item, markdown) except Exception: log.exception(f"Unexpected error when handling {item}") else: |