From 05a40f11b354c2f37a2ec459f078c415e81b3f52 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 27 Jan 2016 16:29:18 -0800 Subject: [PATCH] runtornado: Add explicit return None. --- zerver/management/commands/runtornado.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/management/commands/runtornado.py b/zerver/management/commands/runtornado.py index facd24f8c8..0e7a19515b 100644 --- a/zerver/management/commands/runtornado.py +++ b/zerver/management/commands/runtornado.py @@ -242,7 +242,7 @@ class AsyncDjangoHandler(tornado.web.RequestHandler, base.BaseHandler): response = callback(request, *callback_args, **callback_kwargs) if response is RespondAsynchronously: async_request_stop(request) - return + return None except Exception as e: # If the view raised an exception, run it through exception # middleware, and if the exception middleware returns a