diff options
| author | 2021-03-05 00:08:11 +0100 | |
|---|---|---|
| committer | 2021-03-05 01:42:28 +0100 | |
| commit | 8c2aa1de81fc55c9e33312a086b98faf0a8cab47 (patch) | |
| tree | e4f81980b8b78ba68598af58764479d4bcdceb58 | |
| parent | Typo and docstring style changes (diff) | |
Do not set redis results in get_symbol_embed
The redis results are already being set in the BatchParser
for all symbols
| -rw-r--r-- | bot/exts/info/doc/_cog.py | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index 8300f11d1..5f9366228 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -255,9 +255,7 @@ class DocCog(commands.Cog):          if markdown is None:              log.debug(f"Redis cache miss for symbol `{symbol_name}`.")              markdown = await self.item_fetcher.get_markdown(doc_item) -            if markdown is not None: -                await doc_cache.set(doc_item, markdown) -            else: +            if markdown is None:                  markdown = "Unable to parse the requested symbol."          embed = discord.Embed(  |