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.")