atef.config.get_result_from_comparison

atef.config.get_result_from_comparison(item: PreparedComparison | Exception | None) Tuple[PreparedComparison | None, Result][source]

Get a Result, if available, from the provided arguments.

In the case of an exception (or None/internal error), create one.

Parameters:
itemUnion[PreparedComparison, Exception, None]

The item to grab a result from.

Returns:
PreparedComparison or None

The prepared comparison, if available

Result

The result instance.