Prevention for catching unrelated exceptions added
This commit is contained in:
parent
afd0e78f16
commit
08befa9c86
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue