biosimulators / Biosimulators_utils

Utilities for building standardized command-line interfaces for biosimulation software packages
https://docs.biosimulators.org/Biosimulators_utils
MIT License
4 stars 6 forks source link

Invalid pubmed ids can cause error thrown in Enterez #82

Closed bilalshaikh42 closed 2 years ago

bilalshaikh42 commented 2 years ago

https://github.com/biosimulators/Biosimulators_utils/blob/dd6d3477ebe7efa9137fb325e8d0dc3a3a035c23/biosimulators_utils/ref/utils.py#L66

The above call can throw an error if the pubmed id is invalid. The code later checks for an empty response to determine if the PubMed id is invalid, but this is never reached when the underlying biopython code raises its own error.

Proposed solution: #83