diff --git a/sanic/sanic.py b/sanic/sanic.py index 4ac037e1..d1af3e55 100644 --- a/sanic/sanic.py +++ b/sanic/sanic.py @@ -7,7 +7,6 @@ from inspect import isawaitable, stack, getmodulename from traceback import format_exc from .config import Config -from .handlers import ErrorHandler from .constants import HTTP_METHODS from .exceptions import ServerError from .handlers import ErrorHandler @@ -402,7 +401,7 @@ class Sanic: ("after_server_start", "after_start", after_start, False), ("before_server_stop", "before_stop", before_stop, True), ("after_server_stop", "after_stop", after_stop, True), - ): + ): listeners = [] for blueprint in self.blueprints.values(): listeners += blueprint.listeners[event_name]