Merge pull request #341 from knaperek/patch-1
Fix typo - improper string formatting API used
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