mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 19:04:19 +00:00
fix: compare timezones correctly in download script
This commit is contained in:
parent
f76550ce4e
commit
cb7b9dda6c
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ def _download_from_manifest(manifest_file: str, max_concurrent_downloads: int):
|
||||||
d = json.load(f)
|
d = json.load(f)
|
||||||
manifest = Manifest(**d)
|
manifest = Manifest(**d)
|
||||||
|
|
||||||
if datetime.now(timezone.utc) > manifest.expires_on:
|
if datetime.now(timezone.utc) > manifest.expires_on.astimezone(timezone.utc):
|
||||||
raise ValueError(f"Manifest URLs have expired on {manifest.expires_on}")
|
raise ValueError(f"Manifest URLs have expired on {manifest.expires_on}")
|
||||||
|
|
||||||
console = Console()
|
console = Console()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue