def foo(f): x = 1 try: x = f() except Exception: pass return x