mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 20:06:22 -05:00
Converting APIError to use SanicException as base.
This commit is contained in:
parent
58de8c7c5b
commit
9ee73af61d
19 changed files with 181 additions and 161 deletions
|
|
@ -5,5 +5,5 @@ from wrolpi.errors import APIError
|
|||
|
||||
class InvalidArchive(APIError):
|
||||
code = 'INVALID_ARCHIVE'
|
||||
summary = 'The archive is invalid. See server logs.'
|
||||
status = HTTPStatus.BAD_REQUEST
|
||||
message = 'The archive is invalid. See server logs.'
|
||||
status_code = HTTPStatus.BAD_REQUEST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue