'Convert a C{sys.exc_info()}-style tuple to a L{Failure}, if necessary.'

def _getFailure(self, error):

    if isinstance(error, tuple):
        return Failure(error[1], error[0], error[2])
    return error
