only_python.toml (290B)
1 [ratchet.regex.exceptions] 2 regex = "except:" 3 valid = [ 4 """try: 5 x = 1 6 except ValueError: 7 pass""", 8 """try: 9 do_something() 10 except (IOError, ValueError): 11 handle()""" 12 ] 13 invalid = [ 14 """ 15 try: 16 pass 17 except: 18 pass""", 19 """try: 20 dangerous() 21 except: 22 recover()""" 23 ]