From 2781c2d60e9afd5d5e4a059f2ae186de9dbd301c Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 5 May 2026 20:29:31 +0300 Subject: [PATCH] fix watchdog exp --- tradebot.facti13.external.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tradebot.facti13.external.py b/tradebot.facti13.external.py index 853dcba..c95409c 100644 --- a/tradebot.facti13.external.py +++ b/tradebot.facti13.external.py @@ -104,11 +104,17 @@ class SteamClient(SteamPy.Client): else: self.alive_checker_is_runned = True + def grabLatency(): + try: + return self.latency + except: + return 0.0 + url = os.getenv("ALIVE_PUSH") while url: try: async with aiohttp.ClientSession() as session: - async with session.get(os.getenv("ALIVE_PUSH") + f'${self.latency}', ssl = False) as response: + async with session.get(os.getenv("ALIVE_PUSH") + f'${grabLatency()}', ssl = False) as response: tmp = await response.text() except: traceback.print_exc()