1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-16 21:07:42 +00:00

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

Prevent catching unrelated exceptions
This commit is contained in:
James Cammarata 2014-04-21 11:49:04 -05:00
commit afee14173e

View file

@ -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