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

Make it easier to read error message

This commit is contained in:
John Barker 2016-03-07 12:49:41 +00:00
parent d60f0c94f8
commit 8b4ebd8e4a

View file

@ -414,7 +414,7 @@ class Base:
def _validate_variable_keys(ds): def _validate_variable_keys(ds):
for key in ds: for key in ds:
if not isidentifier(key): if not isidentifier(key):
raise TypeError("%s is not a valid variable name" % key) raise TypeError("'%s' is not a valid variable name" % key)
try: try:
if isinstance(ds, dict): if isinstance(ds, dict):