aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-05-29 19:56:40 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2020-05-29 20:02:41 +0200
commit63f5028641e9b78c61d3bcfe3bbaa6f80c8a288a (patch)
treef043b32e058e1f08b57864ade4dfce6030cdb945 /tests
parentMerge pull request #947 from python-discord/redis_persistence (diff)
Fix `check_for_answer` breaking on missing cache
The `check_for_answer` method of the HelpChannels cog relies on the channel->claimant cache being available. However, as this cache is (currently) lost during bot restarts, this method may fail with a KeyError exception. I've used `dict.get` with an `if not claimant: return` to circumvent this issue.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions