Skip to content

Commit ad622a3

Browse files
committed
registry: Coerce value to string before line-wrapping
Fixes 52a9eb3
1 parent 5a92109 commit ad622a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def close(registry, filename, private=True):
154154
exception('Exception instantiating default for %s:' %
155155
value._name)
156156
try:
157-
lines = iter(textwrap.wrap(x))
157+
lines = iter(textwrap.wrap(str(x)))
158158
lines.append('# Default value: %s\n' % next(lines))
159159
for line in lines:
160160
lines.append('# %s\n' % line)

0 commit comments

Comments
 (0)