-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug in v1.11.0] Need to check for the presence of failedIds
key in uniprot.mapping
#245
Comments
failedIds
key since in uniprot.mapping resultsfailedIds
key in uniprot.mapping results
failedIds
key in uniprot.mapping resultsfailedIds
key in uniprot.mapping results
failedIds
key in uniprot.mapping resultsfailedIds
key in uniprot.mapping
@taoualiw thanks. I have fixed the issue locally with a new tests and will push a release during the day. thanks again for reporting this issue. I'll close the issue once the new release is available on pypi |
Thanks @cokelaer for the quick fix and release. Everything works fine now. However, I would like to bring to your attention that the newly added regression test wasn't exercising the issue. The failing example was |
@taoualiw thanks for the feedback. I improved the test
|
Bug introduced in v1.11.0
It seems that the result of
http_get(f"idmapping/status/{job_id}", frmt="json")
does not contain thefailedIds
key if there are no failed ids:bioservices/src/bioservices/uniprot.py
Line 476 in 07577b6
The changes introduced in the most recent release
v1.11.0, 16 hours ago
result in a
KeyError
bug when that happens and the line responsible for that is the following:bioservices/src/bioservices/uniprot.py
Line 482 in 07577b6
See the following example
Unfortunately, the existing test does not exercise the case where there are no failed ids:
bioservices/test/webservices/test_uniprot.py
Lines 46 to 52 in cce05ab
The text was updated successfully, but these errors were encountered: