def ignore_notfound(func, *args, **kwargs):
 try:
  return func(*args, **kwargs)
 except n_exc.NotFound:
  pass

def ignore_notfound ( func , * args , ** kwargs ) : try : return func ( * args , ** kwargs ) except n_exc . NotFound : pass
call the given function and pass if a notfound exception is raised .