MCPcopy Create free account
hub / github.com/EasyIME/PIME / handle_exception

Method handle_exception

python/python3/tornado/gen.py:827–836  ·  view source on GitHub ↗
(
        self, typ: Type[Exception], value: Exception, tb: types.TracebackType
    )

Source from the content-addressed store, hash-verified

825 return True
826
827 def handle_exception(
828 self, typ: Type[Exception], value: Exception, tb: types.TracebackType
829 ) -> bool:
830 if not self.running and not self.finished:
831 self.future = Future()
832 future_set_exc_info(self.future, (typ, value, tb))
833 self.ctx_run(self.run)
834 return True
835 else:
836 return False
837
838
839# Convert Awaitables into Futures.

Callers

nothing calls this directly

Calls 1

future_set_exc_infoFunction · 0.90

Tested by

no test coverage detected