Fix typo - inproper string formatting API used

Due to this bug, messages were being rendered literally with '%d' characters, missing the actual intended information.
This commit is contained in:
Jozef 2016-06-03 14:15:20 +02:00
parent 96170033ec
commit b079fa9041
1 changed files with 1 additions and 1 deletions

View File

@ -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