Method
wrap_errors
(request: APIRequest, call_next: CallNext)
Source from the content-addressed store, hash-verified
| 880 | ) |
| 881 | |
| 882 | def wrap_errors(request: APIRequest, call_next: CallNext) -> Any: |
| 883 | try: |
| 884 | return call_next(request) |
| 885 | except APIConnectionError as err: |
| 886 | # wrapping a retryable failure with `raise ... from` keeps it on the retry path |
| 887 | raise Boom("wrapped") from err |
| 888 | |
| 889 | client = make_sync_client(middleware=[wrap_errors], max_retries=2) |
| 890 | |
Callers
nothing calls this directly
Tested by
no test coverage detected