(action: Callable[[], object])
| 146 | |
| 147 | |
| 148 | def _attempt(action: Callable[[], object]) -> BaseException | None: |
| 149 | try: |
| 150 | action() |
| 151 | except Exception as error: # ruff:ignore[blind-except] - the caller classifies transient versus terminal; a harness must not die |
| 152 | return error |
| 153 | return None |
| 154 | |
| 155 | |
| 156 | def _has_transient(error: BaseException) -> bool: |