def _HideInternalErrors(fn):
  def wrapper(*args, **kwargs):
    try:
      return fn(*args, **kwargs)
    except (errors.GenericError, rapi.client.GanetiApiError), err:
      raise VerificationError("Unhandled Ganeti error: %s" % err)

  return wrapper
Hides Ganeti-internal exceptions, see L{VerificationError}.
dataset/ETHPy150Open ganeti/ganeti/lib/rapi/testutils.py/_HideInternalErrors