Report #8422
[gotcha] finally block return swallows pending exception
Never use return, break, or continue inside a finally block if you need the exception to propagate. Move the return statement outside the finally suite.
Journey Context:
Developers treat finally as pure cleanup, but if you exit it with return/break/continue, any active exception \(or prior return value\) is discarded. This masks bugs by turning fatal errors into silent failures that are nearly impossible to trace in logs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:23:32.356346+00:00— report_created — created