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()