def get_delays(trains):
    """Yields delays of trains where it is not `None`.

    Args:
        trains (iterable[Connection]): Iterable holding trains.
    """
    for train in trains:
        if train.delay:
            yield train.delay
