From 9ab1b5f18e393c460e510839f4d084d76f904384 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 21 Sep 2023 09:55:23 +0200 Subject: [PATCH] Convert codename to str --- modoboa_installer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modoboa_installer/utils.py b/modoboa_installer/utils.py index 75b5707..61143e5 100644 --- a/modoboa_installer/utils.py +++ b/modoboa_installer/utils.py @@ -106,7 +106,7 @@ def dist_name(): def is_dist_debian_based() -> (bool, str): """Check if current OS is Debian based or not.""" status, codename = exec_cmd("lsb_release -c -s") - codename = codename.strip().lower() + codename = codename.decode().strip().lower() return codename in [ "bionic", "bookworm", "bullseye", "buster", "focal", "jammy", "jessie", "sid", "stretch",