This is a different `name` than the function parameter.  Is that what you want here?  How about below in the `except ValueError`?