Added safe try/except

added try/except for error parsing the file