Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed Jan 4, 2025
1 parent c7fe8b2 commit 9333983
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/pymol/importing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,9 +1208,13 @@ def _fetch(code, name, state, finish, discrete, multiplex, zoom, type, path,

url = hostPaths[bioType]
url_list = []
def contains_protocol_or_path_separator(s):
return any(substring in s for substring in ["://", ":\\"])

for url in url if cmd.is_sequence(url) else [url]:
url_list += [url] if '://' in url else [fetch_host + url
for fetch_host in fetch_host_list]
url_list += [url] if contains_protocol_or_path_separator(url) else [
fetch_host + url for fetch_host in fetch_host_list
]

if bioType not in ['cc']:
code = code.lower()
Expand Down

0 comments on commit 9333983

Please sign in to comment.