Made the string set convertion message a little clearer. Also set up the template to add the protototype dir from the onset.
This commit is contained in:
parent
4d69e80787
commit
91b84213dd
2 changed files with 7 additions and 3 deletions
|
|
@ -1331,10 +1331,11 @@ def _convert_from_string(cmd, strobj):
|
|||
return _LITERAL_EVAL(strobj)
|
||||
except (SyntaxError, ValueError):
|
||||
# treat as string
|
||||
string = "{RNote: Value was converted to string. If you don't want this, "
|
||||
string += "use proper Python syntax, like enclosing strings in quotes.{n"
|
||||
strobj = utils.to_str(strobj)
|
||||
string = "{RNote: name \"{r%s{R\" was converted to a string. " \
|
||||
"Make sure this is acceptable." % strobj
|
||||
cmd.caller.msg(string)
|
||||
return utils.to_str(strobj)
|
||||
return strobj
|
||||
else:
|
||||
# fall back to old recursive solution (does not support
|
||||
# nested lists/dicts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue