minor change to the try/except