ERROR raised, without `from`, in the handler for CONTEXT.
(error: BaseException, context: BaseException)
| 577 | |
| 578 | |
| 579 | def raised_while_handling(error: BaseException, context: BaseException) -> BaseException: |
| 580 | """ERROR raised, without `from`, in the handler for CONTEXT.""" |
| 581 | try: |
| 582 | try: |
| 583 | raise context |
| 584 | except BaseException: |
| 585 | raise error # noqa: B904 - what `raise SystemExit(1)` in a handler does |
| 586 | except BaseException as raised: |
| 587 | return raised |
| 588 | |
| 589 | |
| 590 | def json_project_error(cause: BaseException | None = None) -> BaseException: |
nothing calls this directly
no outgoing calls
no test coverage detected