pycdc/tests/input/test_exception_match_py311.py
2026-04-06 09:30:16 +09:00

7 lines
152 B
Python

def handle_specific(flag):
try:
if flag:
raise ValueError('boom')
except ValueError:
return 'value'
return 'ok'