From 39efbb1953d7775e8a55c5df01a25cc4d17f1374 Mon Sep 17 00:00:00 2001 From: Artem Shurshilov Date: Thu, 6 Jun 2024 13:40:57 +0300 Subject: [PATCH] [ADD] infinity loop for websocket --- const.py | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/const.py b/const.py index 9565136..cb66492 100644 --- a/const.py +++ b/const.py @@ -1 +1 @@ -VERSION = "1.0.8" +VERSION = "1.0.9" diff --git a/main.py b/main.py index ef6d186..4d43c1d 100644 --- a/main.py +++ b/main.py @@ -148,7 +148,7 @@ async def producer_webhook(config: Config, timeout: int = 30) -> None: while True: try: - if not app.state.websocket_client: + if not getattr(app.state, "websocket_client", None): websocket_client = WebsocketEvents( ari_config=config.ari_config, api_key=config.api_key,