diff options
author | Guido Günther <agx@sigxcpu.org> | 2022-12-30 13:07:07 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2022-12-30 13:07:07 +0100 |
commit | 365cae4479e50481ad0e0f5e914263dcae9e272b (patch) | |
tree | 43f12ca3bf50cf5f34e2d28337d93019215b8753 /whatmaps/distro.py | |
parent | 4db63fee215535ba256b89a790df5dda09e756bd (diff) |
distro: Discard stderr
Otherwise it can mess up our parsing
Closes: #1027317
Diffstat (limited to 'whatmaps/distro.py')
-rw-r--r-- | whatmaps/distro.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |