docs: add another old way of raising exceptions
This commit is contained in:
parent
9e76668269
commit
c2551bd765
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ return (
|
||||||
{"message": f"Failed to connect to {domain}."},
|
{"message": f"Failed to connect to {domain}."},
|
||||||
HTTPStatus.BAD_REQUEST,
|
HTTPStatus.BAD_REQUEST,
|
||||||
)
|
)
|
||||||
|
# or the Quart way via abort function
|
||||||
|
abort(HTTPStatus.INTERNAL_SERVER_ERROR, "Could not process withdraw LNURL.")
|
||||||
```
|
```
|
||||||
|
|
||||||
**new:**
|
**new:**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue