diff options
author | Jozef <knaperek@users.noreply.github.com> | 2016-06-03 14:15:20 +0200 |
---|---|---|
committer | Jozef <knaperek@users.noreply.github.com> | 2016-06-03 14:15:20 +0200 |
commit | b079fa90418907aca1c3876db37577028f8913ee (patch) | |
tree | c634f539c314e5e4981ddd7abbd64f8c4727af8b /src/saml2/validate.py | |
parent | 96170033ecf95aa86d3421f3f2b55233fdab7548 (diff) | |
download | pysaml2-b079fa90418907aca1c3876db37577028f8913ee.tar.gz |
Fix typo - inproper string formatting API used
Due to this bug, messages were being rendered literally with '%d' characters, missing the actual intended information.
Diffstat (limited to 'src/saml2/validate.py')
-rw-r--r-- | src/saml2/validate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/validate.py b/src/saml2/validate.py index b7497731..de68fc00 100644 --- a/src/saml2/validate.py +++ b/src/saml2/validate.py @@ -91,7 +91,7 @@ def validate_on_or_after(not_on_or_after, slack): nooa = calendar.timegm(time_util.str_to_time(not_on_or_after)) if now > nooa + slack: raise ResponseLifetimeExceed( - "Can't use it, it's too old %d > %d".format(now - slack, nooa)) + "Can't use it, it's too old %d > %d" % (now - slack, nooa)) return nooa else: return False |