Skip to content

Commit 8a027f6

Browse files
committed
Added a raise DatabaseError to thermo.py
to avoid infinite looping incase a thermo pointer is corrupt
1 parent 10f1ec3 commit 8a027f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rmgpy/data/thermo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,7 @@ def __addGroupThermoData(self, thermoData, database, molecule, atom):
17421742
data = entry.data
17431743
comment = entry.label
17441744
break
1745+
else: raise DatabaseError("Node {0} points to a non-existant group called {1} in database: {2}".format(node.label, data, database.label))
17451746
data.comment = '{0}({1})'.format(database.label, comment)
17461747

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

0 commit comments

Comments
 (0)