mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Brain fart
This commit is contained in:
parent
97eadb6feb
commit
6831dafee5
@ -138,7 +138,7 @@ class String(Value):
|
|||||||
s = repr(s)
|
s = repr(s)
|
||||||
try:
|
try:
|
||||||
v = utils.safeEval(s)
|
v = utils.safeEval(s)
|
||||||
if type(v) is not str:
|
if not isinstance(v, basestring):
|
||||||
raise ValueError
|
raise ValueError
|
||||||
self.value = v
|
self.value = v
|
||||||
except ValueError: # This catches utils.safeEval(s) errors too.
|
except ValueError: # This catches utils.safeEval(s) errors too.
|
||||||
|
Loading…
Reference in New Issue
Block a user