diff options
author | ianb <devnull@localhost> | 2006-02-01 16:34:48 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-02-01 16:34:48 +0000 |
commit | 82397ebe299fdb86a7cae4fe1034077a542428e2 (patch) | |
tree | fc2813f5835875a2436574c3ee456ebb82e7e1d1 /paste/evalexception | |
parent | ffe35d255d661769a7c23c1af5be4aeb3df75f42 (diff) | |
download | paste-82397ebe299fdb86a7cae4fe1034077a542428e2.tar.gz |
Make global_conf parameter to EvalException truly optional
Diffstat (limited to 'paste/evalexception')
-rw-r--r-- | paste/evalexception/middleware.py | 5 |
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): |