Oct-27-2018, 08:14 AM
I had tried this line a few times before and it never worked but I know why now.
process(line.strip())
The first line of my input file was a header row that the program was tripping over. Not sure why the try/except did not just throw an error on line 1 and continue which is odd. I would get pages of FAIL_OR_EMPTY (input file is 4000+ lines).
Thanks for your help!
Follow-up question, what should I read up on regarding the handling of errors so that user error on a single entry won't throw off the program entirely? I suppose I would have to add validation code to the input or is there anything more elegant that can be done?
process(line.strip())
The first line of my input file was a header row that the program was tripping over. Not sure why the try/except did not just throw an error on line 1 and continue which is odd. I would get pages of FAIL_OR_EMPTY (input file is 4000+ lines).
Thanks for your help!
Follow-up question, what should I read up on regarding the handling of errors so that user error on a single entry won't throw off the program entirely? I suppose I would have to add validation code to the input or is there anything more elegant that can be done?