Skip to content

Commit f23cfcb

Browse files
authored
Merge pull request #341 from knaperek/patch-1
Fix typo - improper string formatting API used
2 parents 4769e53 + b079fa9 commit f23cfcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def validate_on_or_after(not_on_or_after, slack):
9191
nooa = calendar.timegm(time_util.str_to_time(not_on_or_after))
9292
if now > nooa + slack:
9393
raise ResponseLifetimeExceed(
94-
"Can't use it, it's too old %d > %d".format(now - slack, nooa))
94+
"Can't use it, it's too old %d > %d" % (now - slack, nooa))
9595
return nooa
9696
else:
9797
return False

0 commit comments

Comments
 (0)