Fix to @set reducing errors during building using strings without using quotes.
This commit is contained in:
parent
0b102bb07b
commit
60e3f5f172
1 changed files with 1 additions and 1 deletions
|
|
@ -1232,7 +1232,7 @@ class CmdSetAttribute(ObjManipCommand):
|
||||||
# Use literal_eval to parse python structure exactly.
|
# Use literal_eval to parse python structure exactly.
|
||||||
try:
|
try:
|
||||||
return _LITERAL_EVAL(strobj)
|
return _LITERAL_EVAL(strobj)
|
||||||
except ValueError:
|
except SyntaxError:
|
||||||
# treat as string
|
# treat as string
|
||||||
string = "{RNote: Value was converted to string. If you don't want this, "
|
string = "{RNote: Value was converted to string. If you don't want this, "
|
||||||
string += "use proper Python syntax, like enclosing strings in quotes.{n"
|
string += "use proper Python syntax, like enclosing strings in quotes.{n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue