diff --git a/sanic/server.py b/sanic/server.py index eddff48c..93e3322a 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -163,7 +163,7 @@ def trigger_events(events, loop): :param loop: event loop """ if events: - if type(events) is not list: + if not isinstance(events, list): events = [events] for event in events: result = event(loop)