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