Skip to content

Commit

Permalink
Catch more errors when reporting problem adsorbate structures.
Browse files Browse the repository at this point in the history
Helps address #2030 which shows that sometimes you hit a DatabaseError bug
and don't know where it came from.
  • Loading branch information
rwest authored and mjohnson541 committed Apr 26, 2021
1 parent 904b6e0 commit 20652a8
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 @@ -1569,7 +1569,7 @@ def get_thermo_data_for_surface_species(self, species):
)
try:
self._add_group_thermo_data(adsorption_thermo, self.groups['adsorptionPt111'], 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 20652a8

Please sign in to comment.