Sep-22-2021, 12:18 AM
What's the purpose of the try/finally? The only reason that should throw an exception is if password doesn't have a length. In that case, it's not a str, so you probably don't want to be trying to look at characters inside it in the finally block.