aboutsummaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-09-14 14:39:58 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2019-09-14 14:39:58 +0200
commitbbbdfcec41c06eaf0d031d7f2a58f111e8e88a16 (patch)
tree434aa2e5227834a81a7b0e75be1f4a6b7db00721 /tests/__init__.py
parentWe now also detect bot tokens outside quotes. (diff)
Make ResponseErrorCode handle non-JSON response
The previous commit assumed the API respone to always be JSON. This leads to issues when that is not the case, such as when the API is completely unreachable (text/html 404 response). Updated the ResponseErrorCode exception to account for that and updated the moderation util `post_infraction` to reflect that.
Diffstat (limited to 'tests/__init__.py')
0 files changed, 0 insertions, 0 deletions