def log_and_continue(exn):
    """Call in an exception handler to ignore any exception, issue a warning, and continue."""
    logging.warning(f"Handling webdataset error ({repr(exn)}). Ignoring.")
    return True
Call in an exception handler to ignore any exception, issue a warning, and continue.
open_flamingo/train/data_utils.py