diff --git a/zerver/tornado/application.py b/zerver/tornado/application.py index 8563e9ea0c..a1fee11ac1 100644 --- a/zerver/tornado/application.py +++ b/zerver/tornado/application.py @@ -23,9 +23,10 @@ def create_tornado_application() -> tornado.web.Application: r"/api/v1/events/internal", ) - # Application is an instance of Django's standard wsgi handler. - return tornado.web.Application([(url, AsyncDjangoHandler) for url in urls], - debug=settings.DEBUG, - autoreload=False, - # Disable Tornado's own request logging, since we have our own - log_function=lambda x: None) + return tornado.web.Application( + [(url, AsyncDjangoHandler) for url in urls], + debug=settings.DEBUG, + autoreload=False, + # Disable Tornado's own request logging, since we have our own + log_function=lambda x: None + )