Merge pull request #7095 from radeksimko/pokemon-exc-fix

Prevent catching unrelated exceptions
reviewable/pr18780/r1
James Cammarata 11 years ago
commit 2725538515

@ -436,7 +436,7 @@ def main():
global apt, apt_pkg global apt, apt_pkg
import apt import apt
import apt_pkg import apt_pkg
except: except ImportError:
module.fail_json(msg="Could not import python modules: apt, apt_pkg. Please install python-apt package.") module.fail_json(msg="Could not import python modules: apt, apt_pkg. Please install python-apt package.")
global APTITUDE_CMD global APTITUDE_CMD

Loading…
Cancel
Save