Lines Matching refs:exc
239 def __step(self, exc=None): argument
244 if not isinstance(exc, exceptions.CancelledError):
245 exc = self._make_cancelled_error()
253 if exc is None:
258 result = coro.throw(exc)
259 except StopIteration as exc:
265 super().set_result(exc.value)
266 except exceptions.CancelledError as exc:
268 self._cancelled_exc = exc
270 except (KeyboardInterrupt, SystemExit) as exc:
271 super().set_exception(exc)
273 except BaseException as exc:
274 super().set_exception(exc)
329 except BaseException as exc:
331 self.__step(exc)
453 except exceptions.CancelledError as exc:
454 raise exceptions.TimeoutError() from exc
493 except exceptions.CancelledError as exc:
494 raise exceptions.TimeoutError() from exc
779 exc = fut._make_cancelled_error()
780 outer.set_exception(exc)
783 exc = fut.exception()
784 if exc is not None:
785 outer.set_exception(exc)
814 exc = fut._make_cancelled_error()
815 outer.set_exception(exc)
896 exc = inner.exception()
897 if exc is not None:
898 outer.set_exception(exc)
926 except BaseException as exc:
928 future.set_exception(exc)