Don't use bare `except`. What is the point of this logic? You should either refactor it to use an `if` statement checking the exact condition, or if it really is an exception, catch that exception only. The way this is now, all errors will be caught in this case, which masks bugs (for example, suppose you made a typo in the above block, then the bottom block would always be run).