Skip to content

Commit 23e3e30

Browse files
committed
Fix nq_runs.download_files (#415)
1 parent cab9c4e commit 23e3e30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/neptune_query/runs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,14 @@ def download_files(
400400
file_list = resolve_files(files)
401401
destination_path = resolve_destination_path(destination)
402402

403-
if not all(file.experiment_name for file in file_list):
403+
if not all(file.run_id for file in file_list):
404404
raise NeptuneUserError(
405405
"Some files passed to nq_runs.download_files don't have associated run IDs. "
406406
"This is likely because you passed files not originating from the runs API. "
407407
"Please use files from the runs API instead by fetching them with "
408408
"nq_runs.fetch_series() or nq_runs.fetch_experiments_table()."
409409
)
410+
410411
return _download_files.download_files(
411412
files=file_list,
412413
destination=destination_path,

0 commit comments

Comments
 (0)