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:
parent
96170033ec
commit
b079fa9041
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue