Skip to content

Commit

Permalink
Fix crash caused by registry.Json.__str__ returning non-str objects
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Dec 3, 2021
1 parent f1824fc commit fba5ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def _needsQuoting(self, s):
return any([x not in self._printable for x in s]) and s.strip() != s

def __str__(self):
s = self()
s = Value.__call__(self) # Don't call self(), it might be overridden
if self._needsQuoting(s):
s = repr(s)
return s
Expand Down

0 comments on commit fba5ed5

Please sign in to comment.