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

This commit is contained in:
Bryan W. Weber 2014-07-16 16:14:48 +00:00
parent d46bc31d2c
commit 947a262d90

View file

@ -1580,7 +1580,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)