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)