Files
openide/python/testData/codeInsight/controlflow/TryExceptNoFinally.py
Aleksandr.Govenko df545f8047 PY-79910 Variable incorrectly marked as unused or redeclared without usage in nested try/if blocks
When there is no `finally` in try-except statement, use transparent exit instruction to tie all normal exits from try-, else- and except- parts to the next instruction


Merge-request: IJ-MR-158265
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com>

GitOrigin-RevId: 734581b732a1a558b72811fdda977c470d045cc9
2025-04-23 22:39:58 +00:00

11 lines
140 B
Python

try:
value = 42
except ValueError:
value = 13
except SomethingElse:
value = 1342
raise
else:
value = 0
print(value)