1 2 3 4 5 6 7
def doit(env): return "OK" def on_exception(env, layer, exc): # swallow the error and abort the run return False