(self, worker_thread, exc_info)
| 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(): |