View Single Post
Old 06-21-2014, 05:11 AM   #1
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Remove unused CSS Rules

Hi Kovid,

I have an unhandled exception with removing unused css rules due to a not existing file.

Is only as information as this is an mistake in the epub and I will adjust this in the book.

Calibre error message:
Spoiler:
calibre, version 1.41.0
ERROR: Unhandled exception: <b>KeyError</b>:u'text/page-template.xpgt'

calibre 1.41* [64bit] isfrozen: True is64bit: True
Windows-Vista-6.0.6002-SP2 Windows ('64bit', 'WindowsPE')
('Windows', 'Vista', '6.0.6002')
Python 2.7.5
Windows: ('Vista', '6.0.6002', 'SP2', 'Multiprocessor Free')
Traceback (most recent call last):
File "c:\home\kovid\work\calibre\src\calibre\gui2\tweak _book\boss.py", line 439, in polish
File "c:\home\kovid\work\calibre\src\calibre\ebooks\oeb \polish\main.py", line 247, in tweak_polish
File "c:\home\kovid\work\calibre\src\calibre\ebooks\oeb \polish\main.py", line 202, in polish_one
File "c:\home\kovid\work\calibre\src\calibre\ebooks\oeb \polish\css.py", line 190, in remove_unused_css
KeyError: u'text/page-template.xpgt'


Error caused by missing file:
Spoiler:
<link rel="stylesheet" type="application/vnd.adobe-page-template+xml" href="page-template.xpgt"/>
Divingduck is offline   Reply With Quote