def f(x): exec("raise thing") return x