Skip to content

Commit ce7a915

Browse files
author
Roland Hedberg
committed
Merge pull request #313 from srynot4sale/unravelerror
Make UnravelError exception a little more helpful
2 parents 1220e85 + 61e1ff6 commit ce7a915

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
@@ -394,7 +394,7 @@ def unravel(txt, binding, msgtype="response"):
394394
else:
395395
xmlstr = txt
396396
except Exception:
397-
raise UnravelError()
397+
raise UnravelError("Unravelling binding '%s' failed" % binding)
398398

399399
return xmlstr
400400

0 commit comments

Comments
 (0)