From 9655b941f35b0bdb4fe7a11527b763d6b6c00f6b Mon Sep 17 00:00:00 2001
From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
Date: Wed, 1 May 2024 13:38:47 +0800
Subject: [PATCH] =?UTF-8?q?:bug:=20Fix:=20none=20=E7=B3=BB=E5=88=97?=
=?UTF-8?q?=E9=A9=B1=E5=8A=A8=E5=99=A8=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?=
=?UTF-8?q?=E6=97=B6=E6=9C=AA=E9=80=80=E5=87=BA=E5=BA=94=E7=94=A8=20(#2687?=
=?UTF-8?q?)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
nonebot/drivers/none.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/nonebot/drivers/none.py b/nonebot/drivers/none.py
index 3a784c55..615de8e6 100644
--- a/nonebot/drivers/none.py
+++ b/nonebot/drivers/none.py
@@ -68,9 +68,11 @@ class Driver(BaseDriver):
await self._lifespan.startup()
except Exception as e:
logger.opt(colors=True, exception=e).error(
- "Error when running startup function. "
- "Ignored!"
+ "Application startup failed. "
+ "Exiting."
)
+ self.should_exit.set()
+ return
logger.info("Application startup completed.")