aboutsummaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-09-14 13:10:08 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2019-09-14 13:10:08 +0200
commitf983b8bd4766a8bfd4dfe1b7d0c249b039244dc1 (patch)
treee02a5b5c72db7b45f5e48d1823fba503b3f71b1a /tests/__init__.py
parentAdd API response dict to ResponseCodeError (diff)
Make 'post_infraction' catch the right exception
The internal 'api' of our API client has changed: It raises a custom RespondeCodeError instead of an `aiohttp.ClientError` when an API was not successful. I updated this utility function to catch the right exception and added handling for unknown users by notifying the user of that problem directly.
Diffstat (limited to 'tests/__init__.py')
0 files changed, 0 insertions, 0 deletions