diff --git a/sanic/app.py b/sanic/app.py index 477fb6d6..500a6d45 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -835,10 +835,8 @@ class Sanic: access_log=True, **kwargs ): - try: - assert "loop" not in kwargs - except AssertionError: - raise TypeError("loop is not a valid argument. For asynchronous support, check https://sanic.readthedocs.io/en/latest/sanic/deploying.html#asynchronous-support") + 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 signal. On termination, drain connections before closing.