Skip to content

Commit 6c7cb0e

Browse files
committed
Raise exception with message; not tuple
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent fa22fde commit 6c7cb0e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/saml2/httpbase.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ def _since_epoch(cdate):
8484
break
8585

8686
if t == -1:
87-
raise (Exception,
88-
'ValueError: Date "{0}" does not match any of: {1}'.format(
89-
cdate,TIME_FORMAT))
87+
err = 'ValueError: Date "{0}" does not match any of: {1}'.format(
88+
cdate, TIME_FORMAT
89+
)
90+
raise Exception(err)
9091

9192
return calendar.timegm(t)
9293

0 commit comments

Comments
 (0)