From 60e3f5f1724799abf27285c5524160d08d86d4d8 Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 27 Sep 2012 21:02:43 +0200 Subject: [PATCH] Fix to @set reducing errors during building using strings without using quotes. --- src/commands/default/building.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"