summaryrefslogtreecommitdiff
path: root/paste/httpexceptions.py
diff options
context:
space:
mode:
authorbbangert <devnull@localhost>2005-12-13 23:12:47 +0000
committerbbangert <devnull@localhost>2005-12-13 23:12:47 +0000
commit7c0990495ffbf7765b5b8130012b8d27d1c56d34 (patch)
tree5811692e1dc79a1d3c9e0caf55181c898463513b /paste/httpexceptions.py
parent19657d6165b94d9e1a006d3ad103f24426aa1631 (diff)
downloadpaste-7c0990495ffbf7765b5b8130012b8d27d1c56d34.tar.gz
make_middleware doesn't use global_conf, not sure why its a required arg. Eval exception calls middleware without a global_conf though. Updated evalexception/middleware to use make_middleware instead, and make_middleware to not require global_conf.
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r--paste/httpexceptions.py2
1 files changed, 1 insertions, 1 deletions
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