Make it easier to read error message
This commit is contained in:
parent
d60f0c94f8
commit
8b4ebd8e4a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue