diff --git a/src/commands/default/building.py b/src/commands/default/building.py index e93773e72..b7cf7561e 100644 --- a/src/commands/default/building.py +++ b/src/commands/default/building.py @@ -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"