From 365cae4479e50481ad0e0f5e914263dcae9e272b Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 30 Dec 2022 13:07:07 +0100 Subject: distro: Discard stderr Otherwise it can mess up our parsing Closes: #1027317 --- whatmaps/distro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whatmaps/distro.py b/whatmaps/distro.py index 87e264e..02a696c 100644 --- a/whatmaps/distro.py +++ b/whatmaps/distro.py @@ -130,7 +130,7 @@ def detect(): try: lsb_cmd = subprocess.Popen(['lsb_release', '--id', '-s'], stdout=subprocess.PIPE, - stderr=subprocess.PIPE) + stderr=subprocess.DEVNULL) output = lsb_cmd.communicate()[0] if not lsb_cmd.returncode: id = output.strip() -- cgit v1.2.3