Skip to content

Commit 3d2fe23

Browse files
author
Roland Hedberg
committed
Fixed making redirect signature work
1 parent 845272f commit 3d2fe23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __init__(self, entity_type, config=None, config_file="",
137137
try:
138138
self.signkey = RSA.importKey(
139139
open(self.config.getattr("key_file", ""), 'r').read())
140-
except KeyError:
140+
except (KeyError, TypeError):
141141
self.signkey = None
142142

143143
HTTPBase.__init__(self, self.config.verify_ssl_cert,

0 commit comments

Comments
 (0)