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.
This commit is contained in:
Ben Darnell 2010-12-14 12:22:17 -08:00
parent 2675142454
commit f73f135d2d
1 changed files with 1 additions and 1 deletions

View File

@ -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