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:
@@ -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))
|
nooa = calendar.timegm(time_util.str_to_time(not_on_or_after))
|
||||||
if now > nooa + slack:
|
if now > nooa + slack:
|
||||||
raise ResponseLifetimeExceed(
|
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
|
return nooa
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user