From 7f974060a31cf366312bdf07c934712e1bc5ddad Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 30 Dec 2022 13:07:07 +0100 Subject: distro: Look at the first line of LSB's output Debian outputs multiple lines nowadays --- whatmaps/distro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'whatmaps/distro.py') diff --git a/whatmaps/distro.py b/whatmaps/distro.py index 02a696c..d4f991b 100644 --- a/whatmaps/distro.py +++ b/whatmaps/distro.py @@ -133,7 +133,7 @@ def detect(): stderr=subprocess.DEVNULL) output = lsb_cmd.communicate()[0] if not lsb_cmd.returncode: - id = output.strip() + id = output.decode().split('\n')[0].strip() except OSError: # id is None in this case pass -- cgit v1.2.3