Merge pull request #14847 from bob-smith/errormsg

Make it easier to read error message
pull/14849/merge
Brian Coca 9 years ago
commit f0b2af2f9d

@ -414,7 +414,7 @@ class Base:
def _validate_variable_keys(ds):
for key in ds:
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:
if isinstance(ds, dict):

Loading…
Cancel
Save