Commit afee1417 by James Cammarata

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

Prevent catching unrelated exceptions
parents 568b4a80 1513d2bd
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment