Skip to content

Commit 61e1ff6

Browse files
committed
Make UnravelError exception a little more helpful
1 parent 0e4f5fa commit 61e1ff6

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)