Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
  • Loading branch information
Akasurde committed Dec 12, 2018
1 parent 0a9f5e1 commit b73fdae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/executor/module_common.py
Expand Up @@ -464,7 +464,7 @@ def recursive_finder(name, data, py_module_names, py_module_cache, zf):
# Parse the module and find the imports of ansible.module_utils
try:
tree = ast.parse(data)
except Exception as e:
except (SyntaxError, IndentationError) as e:
raise AnsibleError("Unable to import %s due to %s" % (name, e.msg))
finder = ModuleDepFinder()
finder.visit(tree)
Expand Down

0 comments on commit b73fdae

Please sign in to comment.