Fix CDN expiration method Bug
This commit is contained in:
@@ -129,12 +129,12 @@ class CdnManager:
|
|||||||
split = token_str.split("~")
|
split = token_str.split("~")
|
||||||
for s in split:
|
for s in split:
|
||||||
try:
|
try:
|
||||||
i = s[0].index("=")
|
i = s.index("=")
|
||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if s[0][:i] == "exp":
|
if s[0][:i] == "exp":
|
||||||
expire_at = int(s[0][i:])
|
expire_at = int(s[0][i + 1:])
|
||||||
break
|
break
|
||||||
|
|
||||||
if expire_at is None:
|
if expire_at is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user