optimizely/python-sdk

return in finally can swallow exception

iritkatriel opened this issue · 0 comments

In

there is a return statement in a finally block, which would swallow any in-flight exception.

This means that if any exception is raised from one of the except: clauses, it will not propagate on as expected.

See also https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions.