wrap the whole block in a try-except, so one error doesn't kill the whole program