def wrap_errors(errors, function, args, kwargs):
 try:
  return (True, function(*args, **kwargs))
 except errors as ex:
  return (False, ex)

def wrap_errors ( errors , function , args , kwargs ) : try : return ( True , function ( * args , ** kwargs ) ) except errors as ex : return ( False , ex )
ensure errors are not passed along .