From 53f4619a9c1f5e42189a19094c0f7787dcc236da Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 16 Jul 2014 13:47:32 -0400 Subject: [PATCH] Check for the correct exception --- mayan/apps/installation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/installation/models.py b/mayan/apps/installation/models.py index 317e8108ea..99a19a723a 100644 --- a/mayan/apps/installation/models.py +++ b/mayan/apps/installation/models.py @@ -13,7 +13,7 @@ import sh try: from sh import lsb_release, uname -except sh.CommandNotFound: +except ImportError: LSB = False else: LSB = True