We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f81416 commit f86f1d7Copy full SHA for f86f1d7
bot.py
@@ -49,7 +49,13 @@ def _setup(self):
49
self.driver.on_startup(self._startup)
50
51
async def _startup(self):
52
- await super()._startup()
+ try:
53
+ await super()._startup()
54
+ except:
55
+ logger.exception("启动 GitHub 适配器时出现异常")
56
+ driver = cast(Driver, self.driver)
57
+ driver.should_exit.set()
58
+ return
59
# 完成启动后创建任务处理 GitHub Action 事件
60
asyncio.create_task(handle_github_action_event())
61
0 commit comments