Fix #8244 Merging two books fails (None custom numeric values throws exception)

This commit is contained in:
Charles Haley 2011-01-09 16:42:28 +00:00
parent 0067f6af4e
commit cdc017bc63

View File

@ -151,6 +151,8 @@ class CustomColumns(object):
return v
def adapt_number(x, d):
if x is None:
return None
if isinstance(x, (str, unicode, bytes)):
if x.lower() == 'none':
return None