From 07515508d70accf36c3b35b0d7df9605fb403154 Mon Sep 17 00:00:00 2001 From: Jacob Sayles Date: Mon, 1 Jun 2020 10:46:09 -0700 Subject: [PATCH] switched to ImportError over ModuleNotFoundError for python 3.4 and below --- 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 e0327ce..4ed7916 100644 --- a/modoboa_installer/utils.py +++ b/modoboa_installer/utils.py @@ -79,7 +79,7 @@ def dist_name(): # Python 3.8 and up way import distro name, version, _id = distro.linux_distribution() - except ModuleNotFoundError as e: + except ImportError as e: # Python 3.7 and down way import platform name, version, _id = platform.linux_distribution()