mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #8244 Merging two books fails (None custom numeric values throws exception)
This commit is contained in:
parent
0067f6af4e
commit
cdc017bc63
@ -151,6 +151,8 @@ class CustomColumns(object):
|
|||||||
return v
|
return v
|
||||||
|
|
||||||
def adapt_number(x, d):
|
def adapt_number(x, d):
|
||||||
|
if x is None:
|
||||||
|
return None
|
||||||
if isinstance(x, (str, unicode, bytes)):
|
if isinstance(x, (str, unicode, bytes)):
|
||||||
if x.lower() == 'none':
|
if x.lower() == 'none':
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user