Using try/except to control the flow here isn't a good idea. It's meant to be used for error states, but here the "error" is actually the success state.

Consider replacing this with an if statement instead.