Description
When running with Python 3.14, Rele emits multiple SyntaxWarning messages about return statements inside finally blocks:
/usr/local/lib/python3.14/site-packages/rele/worker.py:38: SyntaxWarning: 'return' in a 'finally' block
return result
Why This Matters
Using return inside a finally block is problematic because:
- It silently swallows any exceptions that were raised in the try block
- It masks the original exception, making debugging difficult
- Python 3.14 now explicitly warns about this pattern
Affected Files
rele/rele/worker.py (line 38)
Proposed Fix
Refactor the code to move the return statements outside of the finally blocks while preserving the intended behavior.
Environment
- Python version: 3.14
- rele version: latest (main branch)
Description
When running with Python 3.14, Rele emits multiple SyntaxWarning messages about return statements inside finally blocks:
Why This Matters
Using return inside a finally block is problematic because:
Affected Files
rele/rele/worker.py (line 38)Proposed Fix
Refactor the code to move the
returnstatements outside of thefinallyblocks while preserving the intended behavior.Environment