(iterable: Iterable, errback: Callable, *a, **kw)
Wraps an iterable calling an errback if an error is caught while
    iterating it.
Wraps an iterable calling an errback if an error is caught while
    iterating it.
Wraps an iterable calling an errback if an error is caught while iterating it .
def iter_errback(iterable: Iterable, errback: Callable, *a, **kw) -> Generator:
    """Wraps an iterable calling an errback if an error is caught while
    iterating it.
    """
    it = iter(iterable)
    while True:
        try:
            yield next(it)
        except StopIteration:
            break
        except Exception:
            errback(failure.Failure(), *a, **kw)
def iter_errback ( iterable : Iterable , errback : Callable , * a , * * kw ) -> Generator : it = iter ( iterable ) while True : try : yield next ( it ) except StopIteration : break except Exception : errback ( failure . Failure ( ) , * a , * * kw )