Skip to content

Commit 217a487

Browse files
author
Roland Hedberg
committed
A recent change from append to addition made it possible to have yet another exception type.
1 parent 4ac5805 commit 217a487

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
@@ -341,7 +341,7 @@ def sign(self, msg, mid=None, to_sign=None, sign_prepare=False):
341341

342342
try:
343343
to_sign += [(class_name(msg), mid)]
344-
except AttributeError:
344+
except (AttributeError, TypeError):
345345
to_sign = [(class_name(msg), mid)]
346346

347347
logger.info("REQUEST: %s" % msg)

0 commit comments

Comments
 (0)