mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Fix typo in registry.close().
This commit is contained in:
parent
bdbb618ac8
commit
8bacf6734d
@ -117,12 +117,12 @@ def close(registry, filename, private=True):
|
|||||||
try:
|
try:
|
||||||
x = value.__class__(value._default, value._help)
|
x = value.__class__(value._default, value._help)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
exception('Exception instantiating default for %s:',
|
exception('Exception instantiating default for %s:' %
|
||||||
value._name)
|
value._name)
|
||||||
try:
|
try:
|
||||||
lines.append('# Default value: %s\n' % x)
|
lines.append('# Default value: %s\n' % x)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
exception('Exception printing default value of %s:',
|
exception('Exception printing default value of %s:' %
|
||||||
value._name)
|
value._name)
|
||||||
lines.append('###\n')
|
lines.append('###\n')
|
||||||
fd.writelines(lines)
|
fd.writelines(lines)
|
||||||
|
Loading…
Reference in New Issue
Block a user