[ck2cti] Allow the case where a reaction section is specified but empty

Cherry-pick of trunk r3045.
This commit is contained in:
Ray Speth 2014-09-10 22:33:02 +00:00
parent 88e60d7670
commit 66fb99f793

View file

@ -1569,7 +1569,9 @@ class Parser(object):
kineticsList.append(kinetics)
commentsList.append(comments)
if kineticsList[0] == '' and commentsList[-1] == '':
if not kineticsList:
pass
elif kineticsList[0] == '' and commentsList[-1] == '':
# True for mechanism files generated from RMG-Py
kineticsList.pop(0)
commentsList.pop(-1)