Traceback (most recent call last): File "/usr/local/bin/classifier", line 289, in <module> Classifier() File "/usr/local/bin/classifier", line 115, in __init__ self.checkconfig() File "/usr/local/bin/classifier", line 133, in checkconfig val = spl[1].replace(" ","") IndexError: list index out of range
I suggest changing the flow control, maybe wrapping it in a try catch block. This traceback isn't very informative.