From f73f135d2d9811bf2da5cca41c4025dca4ebda73 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Tue, 14 Dec 2010 12:22:17 -0800 Subject: [PATCH] Construct ErrorHandler with kwargs instead of positional arguments for consistency with normal handler construction (and compatibility with the initialize() changes from a couple of commits ago). Closes #194. --- tornado/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/web.py b/tornado/web.py index aab8dc19..70bd0113 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -1160,7 +1160,7 @@ class Application(object): args = [unquote(s) for s in match.groups()] break if not handler: - handler = ErrorHandler(self, request, 404) + handler = ErrorHandler(self, request, status_code=404) # In debug mode, re-compile templates and reload static files on every # request so you don't need to restart to see changes