From e5d3a8025956c51138e2e0d504be182f73cfee10 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 16 Oct 2024 11:50:08 +0300 Subject: [PATCH] sync launch ad stability --- .vscode/launch.json | 12 +++++++++--- crypto/sol/app.py | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8906574..b7e847f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -39,8 +39,8 @@ "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "env": { - "NODE_ENV": "demo" - "OPENAI_API_KEY": + "NODE_ENV": "demo", + "OPENAI_API_KEY":"" }, "skipFiles": [ "/**" @@ -69,7 +69,13 @@ "program": "${file}" }, { - "name": "Python Debugger: Python File with Conda", + "name": "py: Sol app.py", + "type": "debugpy", + "request": "launch", + "program": "${workspaceFolder}/crypto/sol/app.py", + }, + { + "name": "Python Debugger: Python File with Conda (py)", "type": "debugpy", "request": "launch", "program": "${file}", diff --git a/crypto/sol/app.py b/crypto/sol/app.py index 9b79402..a3040a6 100644 --- a/crypto/sol/app.py +++ b/crypto/sol/app.py @@ -1217,7 +1217,7 @@ async def wallet_watch_loop(): await unsubscribe(websocket, subscription_id) await send_telegram_message("reconnecting...") logger.info(f"Attempting to reconnect in {reconnect_delay} seconds...") - websocket.close() + await websocket.close() except Exception as e: logger.error(f"An unexpected error occurred - breaking watch loop: {e}")