Data is external to your programIt’s all lines of textTake a closer look at the dataKnow your dataKnow your methods and ask for helpKnow your data (better)The case of the missing colonTwo very different approachesAdd extra logicHandle exceptionsTry first, then recoverThe try/except mechanismIdentify the code to protectTake a pass on the errorWhat about other errors?Handling missing filesAdd more error-checking code......Or add another level of exception handlingSo, which approach is best?Complexity is rarely a good thingYou’re done...except for one small thingBe specific with your exceptionsYour Python Toolbox