Skip to content

Commit

Permalink
Handle 404 raised by requests from ThermoML (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwthompson authored Nov 3, 2021
1 parent 432bac3 commit ad38fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openff/evaluator/datasets/thermoml/thermoml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@ def _from_url(cls, url, source=None):

return_value = cls.from_xml(request.text, source)

except HTTPError:
except (HTTPError, requests.exceptions.HTTPError):
logger.warning(f"No ThermoML file could not be found at {url}")

return return_value
Expand Down

0 comments on commit ad38fa8

Please sign in to comment.