Fix case where downloaded files do not exist

This commit is contained in:
Nate Bowman
2026-10-08 18:37:47 -04:00
parent f5b58cfe58
commit 5c30b91cb9
2 changed files with 9 additions and 3 deletions

View File

@@ -15,7 +15,11 @@ def get_user_fname(user: str) -> str:
def get_file_age(fname: Path) -> int:
return time.time() - os.path.getmtime(fname)
try:
age = time.time() - os.path.getmtime(fname)
except FileNotFoundError:
age = None
return age
def check_max_players_list() -> None: