(self, exception: Exception)
| 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: |
no test coverage detected