From c063803a91ac9c5d54c8113eff2d2d9b32875058 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 25 Jan 2016 22:20:55 -0500 Subject: [PATCH] raise AnsibleError as an 'expected' exception fixes #14065 --- lib/ansible/parsing/splitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/parsing/splitter.py b/lib/ansible/parsing/splitter.py index feb0cd2b34b..fa26242fcfc 100644 --- a/lib/ansible/parsing/splitter.py +++ b/lib/ansible/parsing/splitter.py @@ -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