#625·tenacity

[FEATURE REQUEST] retry_unless_exception_cause_type

Author: rgullik1Created Mar 5, 2026Updated Mar 7, 2026

retry_if_exception_cause_type is an useful retry_base class but the inverted variant is missing. It would be nice to have a retry_base class that retries if the exception is anything other than the specified exception(s).

An alternative is to implement an __invert_ overload on retry_base but not sure how viable that is.