From aa0be179f2490ea0d87b2cce4d1bbf87d91f5623 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Tue, 25 Jan 2011 20:07:25 +0100 Subject: [PATCH] Running without a configuration shold be possible ? --- src/saml2/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/saml2/client.py b/src/saml2/client.py index 387a758..b794ed5 100644 --- a/src/saml2/client.py +++ b/src/saml2/client.py @@ -94,8 +94,10 @@ class Saml2Client(object): self.users.cache, log=None, vorg_conf=None) self.sec = security_context(config) - - if not debug: + else: + self.config = {} + + if not debug and self.config: self.debug = self.config.debug() else: self.debug = debug