MCPcopy Create free account
hub / github.com/conda/constructor / handle_exception_and_error_out

Function handle_exception_and_error_out

tests/test_examples.py:361–366  ·  view source on GitHub ↗

Print failure context (including logs) and re-raise with exception chaining.

(
    failure: InstallationFailure | UninstallationFailure, original_exception: BaseException
)

Source from the content-addressed store, hash-verified

359
360
361def handle_exception_and_error_out(
362 failure: InstallationFailure | UninstallationFailure, original_exception: BaseException
363) -> None:
364 """Print failure context (including logs) and re-raise with exception chaining."""
365 print(failure.read_text())
366 raise failure from original_exception
367
368
369def _read_briefcase_log_tail(path: Path, last_digits: int) -> str:

Callers 2

_run_installer_msiFunction · 0.85
_run_uninstaller_msiFunction · 0.85

Calls 1

read_textMethod · 0.45

Tested by

no test coverage detected