diff options
| author | 2019-09-14 13:10:08 +0200 | |
|---|---|---|
| committer | 2019-09-14 13:10:08 +0200 | |
| commit | f983b8bd4766a8bfd4dfe1b7d0c249b039244dc1 (patch) | |
| tree | e02a5b5c72db7b45f5e48d1823fba503b3f71b1a /docker | |
| parent | Add 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 'docker')
0 files changed, 0 insertions, 0 deletions