diff options
author | 2020-05-10 13:28:32 -0700 | |
---|---|---|
committer | 2020-05-11 12:03:10 -0700 | |
commit | b366d655af0e0f5a9ff3e053a693838d49884ea2 (patch) | |
tree | 98843ce127f4a02a1073d0c4d873b3c7fa69c488 /tests/helpers.py | |
parent | Merge pull request #924 from python-discord/feature/hemlock/perma-ban-overrid... (diff) |
Token remover: catch ValueError when non-ASCII chars are present
The token uses base64 and base64 only allows ASCII characters. Thus, if
a match has non-ASCII characters, it's not a valid token. Catching the
ValueError is simpler than trying to adjust the regex to only match
valid base64.
Fixes #928
Fixes BOT-3X
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions