From 79de6d3f62ae4390ab1deec45cbdac040c7cf148 Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Wed, 13 Sep 2023 15:43:34 +0200 Subject: [PATCH] Fixed logging empty lines (#2208) --- backend/src/dependencies/store.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/dependencies/store.py b/backend/src/dependencies/store.py index 6556a7dd2..229f5b9c5 100644 --- a/backend/src/dependencies/store.py +++ b/backend/src/dependencies/store.py @@ -145,8 +145,12 @@ def get_progress_amount(): if nextline == b"" and process.poll() is not None: break line = nextline.decode("utf-8").strip() + if not line: + continue + if logger is not None and not line.startswith("Progress:"): logger.info(line) + # The Collecting step of pip. It tells us what package is being installed. if "Collecting" in line: match = COLLECTING_REGEX.search(line)