Fix python3.4 syntax
This commit is contained in:
parent
2043fcd5db
commit
120243d36d
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue