From 48cb1d313802dd13dd754dea60227716bbc90b34 Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Wed, 22 Sep 2010 21:45:44 -0300 Subject: [PATCH] Fix 6902 - If Title is None set to Unknown --- src/calibre/devices/kobo/books.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/devices/kobo/books.py b/src/calibre/devices/kobo/books.py index 496162d668..5724efc4ec 100644 --- a/src/calibre/devices/kobo/books.py +++ b/src/calibre/devices/kobo/books.py @@ -41,6 +41,10 @@ class Book(MetaInformation): self.authors = [''] else: self.authors = [authors] + + if not title: + self.title = 'Unknown' + self.mime = mime self.size = size # will be set later if None