1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

raise AnsibleError as an 'expected' exception

fixes #14065
This commit is contained in:
Brian Coca 2016-01-25 22:20:55 -05:00
parent 9df0662408
commit c063803a91

View file

@ -256,6 +256,6 @@ def split_args(args):
# If we're done and things are not at zero depth or we're still inside quotes,
# raise an error to indicate that the args were unbalanced
if print_depth or block_depth or comment_depth or inside_quotes:
raise Exception("error while splitting arguments, either an unbalanced jinja2 block or quotes")
raise AnsibleError("error while splitting arguments, either an unbalanced jinja2 block or quotes")
return params