From 47f4df49b62b4496c04e5ee059247fa820d7e4aa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Jan 2011 23:05:39 -0700 Subject: [PATCH] Fix #8400 (Not reading Nook) --- src/calibre/library/database2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index 3a2109e01e..33593e93fe 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -690,7 +690,10 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): mi = Metadata(None) aut_list = row[fm['au_map']] - aut_list = [p.split(':::') for p in aut_list.split(':#:')] + if aut_list: + aut_list = [p.split(':::') for p in aut_list.split(':#:') if p] + else: + aut_list = [] aum = [] aus = {} for (author, author_sort) in aut_list: