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

Method _handle_exception

telebot/async_telebot.py:398–406  ·  view source on GitHub ↗
(self, exception: Exception)

Source from the content-addressed store, hash-verified

396 logger.error("Break infinity polling")
397
398 async def _handle_exception(self, exception: Exception) -> bool:
399 if self.exception_handler is None:
400 return False
401
402 if iscoroutinefunction(self.exception_handler.handle):
403 handled = await self.exception_handler.handle(exception)
404 else:
405 handled = self.exception_handler.handle(exception) # noqa
406 return handled
407
408 def __hide_token(self, message: str) -> str:
409 if self.token in message:

Callers 2

_process_pollingMethod · 0.95

Calls 1

handleMethod · 0.45

Tested by

no test coverage detected