Skip to content

Commit 449824a

Browse files
committed
check for existence of type
1 parent f3b780a commit 449824a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htsget_server/htsget_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def _get_experiment(id_=None):
317317
result["program"] = experiment_drs_obj["program"]
318318
for contents_obj in experiment_drs_obj["contents"]:
319319
drs_obj = drs_operations._describe_drs_object(contents_obj["id"])
320-
if drs_obj is not None:
320+
if drs_obj is not None and "type" in drs_obj:
321321
if drs_obj["type"] == "variant":
322322
result["variants"].append(drs_obj["name"])
323323
elif drs_obj["type"] == "read":

0 commit comments

Comments
 (0)