From 1513d2bd6420da60855ff2811ca0e767d228ca30 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 --- library/packaging/apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/apt b/library/packaging/apt index 6bd19177f2d..287bab6d880 100755 --- a/library/packaging/apt +++ b/library/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