def METHOD_NAME(value, default=None):
    if value is None:
        return default
    try:
        h, m, s = [float(ts.replace(",", ".").strip()) for ts in value.split(":")]
        return timedelta(hours=h, minutes=m, seconds=s)
    except ValueError as error:
        logger.warning("Couldn't get duration field: %s. Returning %s", error, default)
        return default