_revancestors: use 'next' to remove the verbose try except clauses
The 'next()' built-in can return a default value, making the final iteration case simpler and clearer.
Loading
Please register or sign in to comment
The 'next()' built-in can return a default value, making the final iteration case simpler and clearer.