blob: 4a199b8a38f796fce6cdf4258cc16eb646034a98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# test continue within exception handler
def f():
lst = [1, 2, 3]
for x in lst:
print('a', x)
try:
if x == 2:
raise Exception
except Exception:
continue
print('b', x)
f()
|