From 783c724ba8d0a093a9b379dd5d16c1d0fb17a3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Climent?= Date: Fri, 27 Jan 2023 22:10:38 +0100 Subject: [PATCH] remove a dummy entry from chocolatey --- wingetui/chocoHelpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wingetui/chocoHelpers.py b/wingetui/chocoHelpers.py index da6d32d7c..8a11fe450 100644 --- a/wingetui/chocoHelpers.py +++ b/wingetui/chocoHelpers.py @@ -112,13 +112,12 @@ def searchForInstalledPackage(signal: Signal, finishSignal: Signal) -> None: else: counter += 1 counter = 0 - emptyStr = "" chocoName = "Chocolatey" for element in output: try: output = str(element, encoding="utf-8", errors="ignore").split(" ") if output[0] != "-" and len(output) > 1: - if output[1] != "validations": + if output[1] != "validations" and output[0] != "Directory": signal.emit(output[0].replace("-", " ").capitalize(), output[0], output[1], chocoName) except Exception as e: report(e)