(exc)
| 324 | |
| 325 | |
| 326 | def _convert_future_exc(exc): |
| 327 | exc_class = type(exc) |
| 328 | if exc_class is concurrent.futures.CancelledError: |
| 329 | return exceptions.CancelledError(*exc.args).with_traceback(exc.__traceback__) |
| 330 | elif exc_class is concurrent.futures.InvalidStateError: |
| 331 | return exceptions.InvalidStateError(*exc.args).with_traceback(exc.__traceback__) |
| 332 | else: |
| 333 | return exc |
| 334 | |
| 335 | |
| 336 | def _set_concurrent_future_state(concurrent, source): |
no test coverage detected