From f07ae77929dbd39bb9c58bf7074e0a1c45700c14 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 2 Oct 2010 11:36:04 -0600 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/reader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/reader.py b/src/calibre/ebooks/oeb/reader.py index 559421326c..82b5c035ac 100644 --- a/src/calibre/ebooks/oeb/reader.py +++ b/src/calibre/ebooks/oeb/reader.py @@ -364,7 +364,10 @@ class OEBReader(object): ncx = item.data title = ''.join(xpath(ncx, 'ncx:docTitle/ncx:text/text()')) title = COLLAPSE_RE.sub(' ', title.strip()) - title = title or unicode(self.oeb.metadata.title[0]) + try: + title = title or unicode(self.oeb.metadata.title[0]) + except: + title = _('Unknown') toc = self.oeb.toc toc.title = title navmaps = xpath(ncx, 'ncx:navMap')