This is actually a good example of when to use try/except/else/finally. You get to mark that on your Python-structure bingo card if you haven't used it before.