def call_and_ignore_notfound_exc(func, *args, **kwargs):
 try:
  return func(*args, **kwargs)
 except exceptions.NotFound:
  pass

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