This should also be inside the try/except block