diff options
author | 2020-05-29 19:56:40 +0200 | |
---|---|---|
committer | 2020-05-29 20:02:41 +0200 | |
commit | 63f5028641e9b78c61d3bcfe3bbaa6f80c8a288a (patch) | |
tree | f043b32e058e1f08b57864ade4dfce6030cdb945 /tests/test_helpers.py | |
parent | Merge 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/test_helpers.py')
0 files changed, 0 insertions, 0 deletions