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

Method _exec_task

telebot/__init__.py:1360–1369  ·  view source on GitHub ↗
(self, task, *args, **kwargs)

Source from the content-addressed store, hash-verified

1358
1359
1360 def _exec_task(self, task, *args, **kwargs):
1361 if self.threaded:
1362 self.worker_pool.put(task, *args, **kwargs)
1363 else:
1364 try:
1365 task(*args, **kwargs)
1366 except Exception as e:
1367 handled = self._handle_exception(e)
1368 if not handled:
1369 raise e
1370
1371
1372 def stop_polling(self):

Callers 4

__notify_updateMethod · 0.95
_notify_next_handlersMethod · 0.95

Calls 2

_handle_exceptionMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected