Skip to content

Commit

Permalink
Added a raise DatabaseError to thermo.py
Browse files Browse the repository at this point in the history
to avoid infinite looping incase a thermo pointer is corrupt
  • Loading branch information
alongd committed Jun 6, 2017
1 parent 46a0053 commit 1220d3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rmgpy/data/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,7 @@ def __addGroupThermoData(self, thermoData, database, molecule, atom):
data = entry.data
comment = entry.label
break
else: raise DatabaseError("Node {0} points to a non-existant group called {1} in database: {2}".format(node.label, data, database.label))
data.comment = '{0}({1})'.format(database.label, comment)

# This code prints the hierarchy of the found node; useful for debugging
Expand Down

0 comments on commit 1220d3b

Please sign in to comment.