Skip to content

Commit 6f289b9

Browse files
alongdamarkpayne
authored andcommitted
Added a raise DatabaseError to thermo.py
to avoid infinite looping incase a thermo pointer is corrupt
1 parent 3c83a90 commit 6f289b9

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
@@ -1745,6 +1745,7 @@ def __addGroupThermoData(self, thermoData, database, molecule, atom):
17451745
data = entry.data
17461746
comment = entry.label
17471747
break
1748+
else: raise DatabaseError("Node {0} points to a non-existant group called {1} in database: {2}".format(node.label, data, database.label))
17481749
data.comment = '{0}({1})'.format(database.label, comment)
17491750

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

0 commit comments

Comments
 (0)