Fix to @set reducing errors during building using strings without using quotes.

This commit is contained in:
Griatch 2012-09-27 21:02:43 +02:00
parent 0b102bb07b
commit 60e3f5f172

View file

@ -1232,7 +1232,7 @@ class CmdSetAttribute(ObjManipCommand):
# Use literal_eval to parse python structure exactly.
try:
return _LITERAL_EVAL(strobj)
except ValueError:
except SyntaxError:
# 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"