diff options
-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): |