aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-05-10 13:28:32 -0700
committerGravatar MarkKoz <[email protected]>2020-05-11 12:03:10 -0700
commitb366d655af0e0f5a9ff3e053a693838d49884ea2 (patch)
tree98843ce127f4a02a1073d0c4d873b3c7fa69c488 /tests/helpers.py
parentMerge 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