From b079fa90418907aca1c3876db37577028f8913ee Mon Sep 17 00:00:00 2001 From: Jozef Date: Fri, 3 Jun 2016 14:15:20 +0200 Subject: [PATCH] Fix typo - inproper string formatting API used Due to this bug, messages were being rendered literally with '%d' characters, missing the actual intended information. --- src/saml2/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saml2/validate.py b/src/saml2/validate.py index b749773..de68fc0 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