Why do we have this try/except statement here?