Skip to content

Commit e3a6dea

Browse files
authored
allow https for remote onlist (#54)
1 parent 2a5df33 commit e3a6dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seqspec/seqspec_onlist.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def run_onlist(spec_fn, modality, ids, idtype, fmt, o):
136136
onlist_path = os.path.join(base_path, onlist_fn)
137137
if os.path.exists(onlist_path):
138138
urltype = "local"
139-
elif urltype == "http":
139+
elif urltype in ["http", "https"]:
140140
# download the onlist to the base path and return the path
141141
onlist_elements = read_remote_list(onlists[0])
142142
onlist_path = write_onlist(onlist_elements, save_path)
@@ -147,7 +147,7 @@ def run_onlist(spec_fn, modality, ids, idtype, fmt, o):
147147
for o in onlists:
148148
if o.urltype == "local":
149149
lsts.append(read_local_list(o, base_path))
150-
elif o.urltype == "http":
150+
elif o.urltype in ["http", "https"]:
151151
# base_path is ignored for remote onlists
152152
lsts.append(read_remote_list(o, base_path))
153153
onlist_elements = join_onlists(lsts, fmt)

0 commit comments

Comments
 (0)