docs: add another old way of raising exceptions

This commit is contained in:
Stefan Stammberger 2021-09-11 12:28:29 +02:00
parent 9e76668269
commit c2551bd765
No known key found for this signature in database
GPG Key ID: 645FA807E935D9D5

View File

@ -35,6 +35,8 @@ return (
{"message": f"Failed to connect to {domain}."},
HTTPStatus.BAD_REQUEST,
)
# or the Quart way via abort function
abort(HTTPStatus.INTERNAL_SERVER_ERROR, "Could not process withdraw LNURL.")
```
**new:**