

def __init__(self, failure=None, failures=None):
    '\n        One of failure/failures must be set.\n        \n        :param failure: single (installer_key, message) tuple.  \n        :param failures: list of (installer_key, message) tuples\n        '
    if (failures is not None):
        self.failures = failures
    elif (not failure):
        raise ValueError('failure is None')
    else:
        self.failures = [failure]

dataset/ETHPy150Open ros-infrastructure/rosdep/src/rosdep2/core.py InstallFailed.__init__/original