Closed bilalshaikh42 closed 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
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