Skip to content

Commit 1220d3b

Browse files
committed
Added a raise DatabaseError to thermo.py
to avoid infinite looping incase a thermo pointer is corrupt
1 parent 46a0053 commit 1220d3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rmgpy/data/thermo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,7 @@ def __addGroupThermoData(self, thermoData, database, molecule, atom):
16611661
data = entry.data
16621662
comment = entry.label
16631663
break
1664+
else: raise DatabaseError("Node {0} points to a non-existant group called {1} in database: {2}".format(node.label, data, database.label))
16641665
data.comment = '{0}({1})'.format(database.label, comment)
16651666

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

0 commit comments

Comments
 (0)