mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 20:16:47 +00:00
fix fastapi run bug
This commit is contained in:
@ -108,9 +108,9 @@ class Driver(BaseDriver):
|
||||
},
|
||||
}
|
||||
uvicorn.run(app or self.server_app,
|
||||
host=str(host) or str(self.config.host),
|
||||
host=host or str(self.config.host),
|
||||
port=port or self.config.port,
|
||||
reload=app and self.config.debug,
|
||||
reload=bool(app) and self.config.debug,
|
||||
debug=self.config.debug,
|
||||
log_config=LOGGING_CONFIG,
|
||||
**kwargs)
|
||||
|
Reference in New Issue
Block a user