do this outside of the try/except