Skip to content

Commit 415425a

Browse files
committed
Fix tests
1 parent 61e3973 commit 415425a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quetz/repo_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def export(dao, channel_name, subdir):
2222
):
2323
data = json.loads(info)
2424
data['time_modified'] = int(time_modified.timestamp())
25-
if data['timestamp'] > MAX_CONDA_TIMESTAMP:
25+
if 'timestamp' in data and data['timestamp'] > MAX_CONDA_TIMESTAMP:
2626
# Convert timestamp from milliseconds to seconds
2727
data['timestamp'] //= 1000
2828
if format == db_models.PackageFormatEnum.conda:

0 commit comments

Comments
 (0)