summaryrefslogtreecommitdiff
path: root/paste/evalexception
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-02-01 16:34:48 +0000
committerianb <devnull@localhost>2006-02-01 16:34:48 +0000
commit82397ebe299fdb86a7cae4fe1034077a542428e2 (patch)
treefc2813f5835875a2436574c3ee456ebb82e7e1d1 /paste/evalexception
parentffe35d255d661769a7c23c1af5be4aeb3df75f42 (diff)
downloadpaste-82397ebe299fdb86a7cae4fe1034077a542428e2.tar.gz
Make global_conf parameter to EvalException truly optional
Diffstat (limited to 'paste/evalexception')
-rw-r--r--paste/evalexception/middleware.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py
index 3bee724..4576e10 100644
--- a/paste/evalexception/middleware.py
+++ b/paste/evalexception/middleware.py
@@ -148,7 +148,10 @@ class EvalException(object):
self.application = application
self.debug_infos = {}
if xmlhttp_key is None:
- xmlhttp_key = global_conf.get('xmlhttp_key', '_')
+ if global_conf is None:
+ xmlhttp_key = '_'
+ else:
+ xmlhttp_key = global_conf.get('xmlhttp_key', '_')
self.xmlhttp_key = xmlhttp_key
def __call__(self, environ, start_response):