From: Ben Darnell Date: Tue, 14 Dec 2010 20:22:17 +0000 (-0800) Subject: Construct ErrorHandler with kwargs instead of positional arguments X-Git-Tag: v1.2.0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f73f135d2d9811bf2da5cca41c4025dca4ebda73;p=thirdparty%2Ftornado.git 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. --- diff --git a/tornado/web.py b/tornado/web.py index aab8dc19d..70bd01136 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