Update WebApp
This commit is contained in:
6
main.py
6
main.py
@@ -71,8 +71,10 @@ async def main():
|
||||
web_app.state.bot = bot
|
||||
config = uvicorn.Config(web_app, host="0.0.0.0", port=CONFIG["WEB_APP_PORT"], log_level="info")
|
||||
server = uvicorn.Server(config)
|
||||
except ImportError:
|
||||
logger.error("Could not import server or uvicorn")
|
||||
except Exception as e:
|
||||
logger.error(f"FAILED to start Web App: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
server = None
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user