diff options
-rw-r--r-- | paste/evalexception/middleware.py | 2 | ||||
-rw-r--r-- | paste/httpexceptions.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py index 8f7ca20..c6c843f 100644 --- a/paste/evalexception/middleware.py +++ b/paste/evalexception/middleware.py @@ -105,7 +105,7 @@ def wsgiapp(): status = headers.pop('status') start_response(status, headers.headeritems()) return [res] - app = httpexceptions.middleware(application) + app = httpexceptions.make_middleware(application) app = simplecatcher(app) return app(environ, start_response) wsgiapp_wrapper.exposed = True diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index 17eab87..18400fb 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -566,7 +566,7 @@ def middleware(*args, **kw): DeprecationWarning, 1) return make_middleware(*args, **kw) -def make_middleware(app, global_conf, warning_level=None): +def make_middleware(app, global_conf=None, warning_level=None): """ ``httpexceptions`` middleware; this catches any ``paste.httpexceptions.HTTPException`` exceptions (exceptions like |