def predict_variant_effect_on_transcript_or_failure(variant, transcript):
    """
    Try predicting the effect of a variant on a particular transcript but
    suppress raised exceptions by converting them into `Failure` effect
    values.
    """
    try:
        return predict_variant_effect_on_transcript(
            variant=variant,
            transcript=transcript)
    except (AssertionError, ValueError) as error:
        logger.warn(
            "Encountered error annotating %s for %s: %s",
            variant,
            transcript,
            error)
        return Failure(variant, transcript)
def predict_variant_effect_on_transcript_or_failure ( variant , transcript ) : try : return predict_variant_effect_on_transcript ( variant = variant , transcript = transcript ) except ( AssertionError , ValueError ) as error : logger . warn ( "Encountered error annotating %s for %s: %s" , variant , transcript , error ) return Failure ( variant , transcript )
Try predicting the effect of a variant on a particular transcript but
    suppress raised exceptions by converting them into `Failure` effect
    values.