Skip to content

Commit 12ad003

Browse files
kakalycaseylitton
authored andcommitted
ENCD-3916 Fix for broken metadata queries (#2179)
1 parent 463b4d7 commit 12ad003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoded/batch_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def metadata_tsv(context, request):
241241
results = request.embed(path, as_user=True)
242242
rows = []
243243
for experiment_json in results['@graph']:
244-
if experiment_json['files']:
244+
if experiment_json.get('files', []):
245245
exp_data_row = []
246246
for column in header:
247247
if not _tsv_mapping[column][0].startswith('files'):

0 commit comments

Comments
 (0)