Merge pull request #1391 from AndresSan6/loop_exception
Handle "loop" exception in app.py
This commit is contained in:
commit
e3a27c2cc4
|
@ -835,6 +835,14 @@ class Sanic:
|
||||||
access_log=True,
|
access_log=True,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
|
if "loop" in kwargs:
|
||||||
|
raise TypeError(
|
||||||
|
"loop is not a valid argument. To use an existing loop, "
|
||||||
|
"change to create_server().\nSee more: "
|
||||||
|
"https://sanic.readthedocs.io/en/latest/sanic/deploying.html"
|
||||||
|
"#asynchronous-support"
|
||||||
|
)
|
||||||
|
|
||||||
"""Run the HTTP Server and listen until keyboard interrupt or term
|
"""Run the HTTP Server and listen until keyboard interrupt or term
|
||||||
signal. On termination, drain connections before closing.
|
signal. On termination, drain connections before closing.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user