kopia lustrzana https://github.com/cirospaciari/socketify.py
Fix typo in routes docs (#165)
rodzic
2c51d97097
commit
2aba41ff7b
|
@ -102,7 +102,7 @@ async def async_xablau(res, req):
|
|||
# this can be async no problems
|
||||
def on_error(error, res, req):
|
||||
# here you can log properly the error and do a pretty response to your clients
|
||||
print("Somethind goes %s" % str(error))
|
||||
print("Something goes %s" % str(error))
|
||||
# response and request can be None if the error is in an async function
|
||||
if res != None:
|
||||
# if response exists try to send something
|
||||
|
@ -164,4 +164,4 @@ app.remove_server_name("*.google.*")
|
|||
|
||||
```
|
||||
|
||||
### Next [Middlewares](middlewares.md)
|
||||
### Next [Middlewares](middlewares.md)
|
||||
|
|
Ładowanie…
Reference in New Issue