diff --git a/interfaces/python/ck2cti.py b/interfaces/python/ck2cti.py index 9a0f47c9a..6a502ed3c 100755 --- a/interfaces/python/ck2cti.py +++ b/interfaces/python/ck2cti.py @@ -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)