Skip to content

Commit

Permalink
More informative error logging when adsorption thermo fails.
Browse files Browse the repository at this point in the history
If you can't find adsorption energy group value,
log the adjacency list of the molecule.
  • Loading branch information
rwest committed Apr 30, 2020
1 parent 6ad5dcb commit c996918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/data/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ def get_thermo_data_for_surface_species(self, species):
)
try:
self._add_group_thermo_data(adsorption_thermo, self.groups['adsorptionPt'], molecule, {})
except KeyError:
except (KeyError, DatabaseError):
logging.error("Couldn't find in adsorption thermo database:")
logging.error(molecule)
logging.error(molecule.to_adjacency_list())
Expand Down

0 comments on commit c996918

Please sign in to comment.