mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
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
11 lines
140 B
Python
11 lines
140 B
Python
try:
|
|
value = 42
|
|
except ValueError:
|
|
value = 13
|
|
except SomethingElse:
|
|
value = 1342
|
|
raise
|
|
else:
|
|
value = 0
|
|
|
|
print(value) |