MOBI Output: Fix FAZ.NET feed conversion to MOBI

This commit is contained in:
Kovid Goyal
2009-03-14 10:34:54 -07:00
parent 57246bfbac
commit 60f6686755
2 changed files with 1 additions and 8 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ class Stylizer(object):
for _, _, cssdict, text, _ in rules:
try:
selector = CSSSelector(text)
except ExpressionError:
except (AssertionError, ExpressionError, etree.XPathSyntaxError):
continue
for elem in selector(tree):
self.style(elem)._update_cssdict(cssdict)
@@ -6,13 +6,6 @@ from __future__ import with_statement
__license__ = 'GPL v3'
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
import sys
import os
import re
import operator
import math
from itertools import chain
from collections import defaultdict
from lxml import etree
from calibre.ebooks.oeb.base import XHTML, XHTML_NS
from calibre.ebooks.oeb.base import CSS_MIME