diff --git a/src/calibre/db/write.py b/src/calibre/db/write.py index 7207c268bc..175b484c91 100644 --- a/src/calibre/db/write.py +++ b/src/calibre/db/write.py @@ -83,7 +83,7 @@ def adapt_number(typ, x): if x is None: return None if isinstance(x, (unicode, bytes)): - if x.lower() == 'none': + if not x or x.lower() == 'none': return None return typ(x)