Skip to content
Snippets Groups Projects
Commit c2a129e5 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[scripts.mirror] Prevents timestamp key not found error

parent 2bea112b
No related branches found
No related tags found
No related merge requests found
Pipeline #51283 passed
...@@ -221,6 +221,12 @@ def mirror( ...@@ -221,6 +221,12 @@ def mirror(
if start_date is not None: if start_date is not None:
too_old = set() too_old = set()
for k in to_download: for k in to_download:
if "timestamp" not in remote_package_info[k]:
logger.debug(
"Package %s does not contain a timestamp (ignoring)...",
k,
)
continue
pkgdate = datetime.datetime.fromtimestamp( pkgdate = datetime.datetime.fromtimestamp(
remote_package_info[k]["timestamp"] / 1000.0 remote_package_info[k]["timestamp"] / 1000.0
).date() ).date()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment