MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / on_exception

Method on_exception

telebot/util.py:143–151  ·  view source on GitHub ↗
(self, worker_thread, exc_info)

Source from the content-addressed store, hash-verified

141 self.tasks.put((func, args, kwargs))
142
143 def on_exception(self, worker_thread, exc_info):
144 if self.telebot.exception_handler is not None:
145 handled = self.telebot.exception_handler.handle(exc_info)
146 else:
147 handled = False
148 if not handled:
149 self.exception_info = exc_info
150 self.exception_event.set()
151 worker_thread.continue_event.set()
152
153 def raise_exceptions(self):
154 if self.exception_event.is_set():

Callers

nothing calls this directly

Calls 2

handleMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected