mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fix crash caused by registry.Json.__str__ returning non-str objects
This commit is contained in:
parent
f1824fc7db
commit
fba5ed5fa4
@ -660,7 +660,7 @@ class String(Value):
|
|||||||
return any([x not in self._printable for x in s]) and s.strip() != s
|
return any([x not in self._printable for x in s]) and s.strip() != s
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
s = self()
|
s = Value.__call__(self) # Don't call self(), it might be overridden
|
||||||
if self._needsQuoting(s):
|
if self._needsQuoting(s):
|
||||||
s = repr(s)
|
s = repr(s)
|
||||||
return s
|
return s
|
||||||
|
Loading…
Reference in New Issue
Block a user