Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Mar 4, 2024
1 parent 61e3973 commit 415425a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quetz/repo_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def export(dao, channel_name, subdir):
):
data = json.loads(info)
data['time_modified'] = int(time_modified.timestamp())
if data['timestamp'] > MAX_CONDA_TIMESTAMP:
if 'timestamp' in data and data['timestamp'] > MAX_CONDA_TIMESTAMP:
# Convert timestamp from milliseconds to seconds
data['timestamp'] //= 1000
if format == db_models.PackageFormatEnum.conda:
Expand Down

0 comments on commit 415425a

Please sign in to comment.