Why do we need this try / except block here?