From 120243d36d997c2e9ae348737cc20160d546e8d6 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Fri, 28 Aug 2015 10:30:27 -0700 Subject: [PATCH] Fix python3.4 syntax --- lib/ansible/playbook/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py index d1cb5f07a18..fad1439ff1a 100644 --- a/lib/ansible/playbook/base.py +++ b/lib/ansible/playbook/base.py @@ -402,7 +402,7 @@ class Base: raise ValueError except ValueError: raise AnsibleParserError("Vars in a %s must be specified as a dictionary, or a list of dictionaries" % self.__class__.__name__, obj=ds) - except TypeError, e: + except TypeError as e: raise AnsibleParserError("Invalid variable name in vars specified for %s: %s" % (self.__class__.__name__, e), obj=ds) def _extend_value(self, value, new_value):