From 08befa9c86cdea3c2625c3cc2f4190402a0d545e Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Mon, 21 Apr 2014 15:35:18 +0100 Subject: [PATCH] Prevention for catching unrelated exceptions added --- packaging/apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/apt b/packaging/apt index 6bd19177f2d..287bab6d880 100755 --- a/packaging/apt +++ b/packaging/apt @@ -436,7 +436,7 @@ def main(): global apt, apt_pkg import apt import apt_pkg - except: + except ImportError: module.fail_json(msg="Could not import python modules: apt, apt_pkg. Please install python-apt package.") global APTITUDE_CMD