Fix typo in registry.close().

This commit is contained in:
Valentin Lorentz 2012-07-30 11:18:02 +02:00
parent bdbb618ac8
commit 8bacf6734d

View File

@ -117,12 +117,12 @@ def close(registry, filename, private=True):
try:
x = value.__class__(value._default, value._help)
except Exception, e:
exception('Exception instantiating default for %s:',
exception('Exception instantiating default for %s:' %
value._name)
try:
lines.append('# Default value: %s\n' % x)
except Exception, e:
exception('Exception printing default value of %s:',
exception('Exception printing default value of %s:' %
value._name)
lines.append('###\n')
fd.writelines(lines)