还有一点小bug,以及代码清理

This commit is contained in:
lededev
2021-09-29 06:37:45 +08:00
parent 2c22d70078
commit 531840c3fb
4 changed files with 38 additions and 30 deletions

View File

@@ -614,7 +614,7 @@ def load_cookies(filename):
# 文件修改时间距此时的天数
def file_modification_days(filename) -> int:
mfile = Path(filename)
if not mfile.exists():
if not mfile.is_file():
return 9999
mtime = int(mfile.stat().st_mtime)
now = int(time.time())