summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2014-12-15 11:59:13 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2014-12-15 11:59:13 +0100
commit3d2fe2332ac1cead47b3e042de60ff305223d407 (patch)
tree265847a7e3480b564b82c60c92ee6deb1fafe591
parent845272f97d0a8cd8cab6224803434bce6c69537e (diff)
downloadpysaml2-3d2fe2332ac1cead47b3e042de60ff305223d407.tar.gz
Fixed making redirect signature work
-rw-r--r--src/saml2/entity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/entity.py b/src/saml2/entity.py
index 3082b323..b15164a1 100644
--- a/src/saml2/entity.py
+++ b/src/saml2/entity.py
@@ -137,7 +137,7 @@ class Entity(HTTPBase):
try:
self.signkey = RSA.importKey(
open(self.config.getattr("key_file", ""), 'r').read())
- except KeyError:
+ except (KeyError, TypeError):
self.signkey = None
HTTPBase.__init__(self, self.config.verify_ssl_cert,