Shuffling around try/except