We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4066f6e commit 3b09319Copy full SHA for 3b09319
1 file changed
executor-p2rank/executor.py
@@ -132,8 +132,8 @@ def _download_from_alpha_fold(
132
metadata["alpha-fold"] = entry_content
133
if len(entry_content) == 0:
134
raise Exception(f"No Alphafold entry found for: {code}")
135
- assert len(entry_content) == 1, \
136
- f"One entry expected for AlphaFold, found {len(entry_content)}"
+ if len(entry_content) != 1:
+ logger.warning(f"One entry expected for AlphaFold, found {len(entry_content)}! Using the first entry.")
137
cif_url = entry_content[0]["cifUrl"]
138
_download(cif_url, destination)
139
0 commit comments