remove redundant code; decode response

This commit is contained in:
Raphael Deem
2017-05-20 19:30:08 -07:00
parent 5d9c8d59a0
commit 9efa7c116d
3 changed files with 27 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ def i_am_ready_to_die(request):
raise ServerError("Something bad happened", status_code=500)
```
You can also use the `abort` function with the correct status code:
You can also use the `abort` function with the appropriate status code:
```python
from sanic.exceptions import abort