From c7cc0079a88f659811a314c366c36e448e674f2d Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Wed, 28 Aug 2024 02:24:48 +0300 Subject: [PATCH] fix bug --- logs_parser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/logs_parser.py b/logs_parser.py index 2bf4e8c..8843613 100644 --- a/logs_parser.py +++ b/logs_parser.py @@ -49,13 +49,11 @@ def parse_logs(timeout): return False, "Max Retry Reached" except Exception as e: print(f"Exception occurred: {e}", flush=True) - finally: - process.stdout.close() print("Sleeping before next log request...", flush=True) time.sleep(30) - if time.time() - start_time > timeout: + if time.time() - start_time > timeout * 60: print(f"Timeout reached: {timeout} minutes elapsed without success.", flush=True) return False, f"Timeout reached: {timeout} minutes elapsed without success."