You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is a return statement in a finally clause, which would swallow any in-flight exception.
Since except StopIteration two lines above explicitly swallows StopIteration exceptions, my guess is that the intention was not to also swallow all other exceptions. If it was, the code could be rewritten to make this clearer.
In
dd-trace-py/benchmarks/bm/_scenario.py
Line 72 in 51fe517
Since
except StopIteration
two lines above explicitly swallowsStopIteration
exceptions, my guess is that the intention was not to also swallow all other exceptions. If it was, the code could be rewritten to make this clearer.Similarly, in
dd-trace-py/ddtrace/appsec/_iast/_taint_utils.py
Line 141 in 51fe517
BaseException
(includingKeyboardInterrupt
) where theexcept
only explicitly swallowsException
s.See also https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions.
The text was updated successfully, but these errors were encountered: