Fix #6909 (Trouble in converting non drm prc file to epub)

This commit is contained in:
Kovid Goyal 2010-09-23 20:23:11 -06:00
parent 52b17cc1b9
commit 448aa8497b

View File

@ -219,7 +219,10 @@ class CSSFlattener(object):
fnums = self.context.source.fnums fnums = self.context.source.fnums
if size[0] in ('+', '-'): if size[0] in ('+', '-'):
# Oh, the warcrimes # Oh, the warcrimes
esize = 3 + force_int(size) try:
esize = 3 + force_int(size)
except:
esize = 3
if esize < 1: if esize < 1:
esize = 1 esize = 1
if esize > 7: if esize > 7: