Changing the code above so that it uses the code in the except: clause unconditionally produces the desired result.
Changing the code above so that it uses the code in the except: clause unconditionally produces the desired result.