Fix #1595261 [Exception due to missing article title](https://bugs.launchpad.net/calibre/+bug/1595261)

This commit is contained in:
Kovid Goyal 2016-06-23 05:51:03 +05:30
parent 0692c4a3fb
commit 8603fd5d5f

View File

@ -18,7 +18,7 @@ class Article(object):
from lxml import html
self.downloaded = False
self.id = id
self._title = title.strip() if title else title
self._title = (title or _('Unknown')).strip()
try:
self._title = re.sub(r'&(\S+?);',
entity_to_unicode, self._title)