Now run "Check book", it will error out with this error message :
calibre, version 1.28.0
ERROR: Unhandled exception: <b>TypeError</b>:expected string or buffer
calibre 1.28 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 73, in ans
File "site-packages\calibre\gui2\tweak_book\boss.py", line 1010, in check_requested
File "site-packages\calibre\gui2\tweak_book\check.py", line 167, in run_checks
File "site-packages\calibre\ebooks\oeb\polish\check\main.py", line 54, in run_checks
File "site-packages\calibre\ebooks\oeb\polish\check\parsing.py", line 315, in check_css_parsing
File "site-packages\cssutils-0.9.10-py2.7.egg\cssutils\parse.py", line 148, in parseString
File "site-packages\cssutils-0.9.10-py2.7.egg\cssutils\css\cssstylesheet.py", line 355, in _setCssTextWithEncodingOverride
File "site-packages\cssutils-0.9.10-py2.7.egg\cssutils\css\cssstylesheet.py", line 303, in _setCssText
File "site-packages\cssutils-0.9.10-py2.7.egg\cssutils\util.py", line 410, in _parse
File "site-packages\cssutils-0.9.10-py2.7.egg\cssutils\tokenize2.py", line 123, in tokenize
TypeError: expected string or buffer
When editing a book, if html page contains an empty style tag, check crashes.
Calibre 1.28 64-bit windows.
How to reproduce : css"></ style>
In edit book, edit a page and add :
<style type="text/css" />
or
<style type="text/
to the head of the file. For example:
<head> t1.css" type="text/css" rel="stylesheet" /> css"></ style>
<title>My book</title>
<link href="styleshee
<style type="text/
</head>
Now run "Check book", it will error out with this error message :
calibre, version 1.28.0 /b>:expected string or buffer
ERROR: Unhandled exception: <b>TypeError<
calibre 1.28 [64bit] isfrozen: True is64bit: True 7-6.1.7601- SP1 Windows ('64bit', 'WindowsPE') calibre\ gui2\tweak_ book\boss. py", line 73, in ans calibre\ gui2\tweak_ book\boss. py", line 1010, in check_requested calibre\ gui2\tweak_ book\check. py", line 167, in run_checks calibre\ ebooks\ oeb\polish\ check\main. py", line 54, in run_checks calibre\ ebooks\ oeb\polish\ check\parsing. py", line 315, in check_css_parsing cssutils- 0.9.10- py2.7.egg\ cssutils\ parse.py" , line 148, in parseString cssutils- 0.9.10- py2.7.egg\ cssutils\ css\cssstyleshe et.py", line 355, in _setCssTextWith EncodingOverrid e cssutils- 0.9.10- py2.7.egg\ cssutils\ css\cssstyleshe et.py", line 303, in _setCssText cssutils- 0.9.10- py2.7.egg\ cssutils\ util.py" , line 410, in _parse cssutils- 0.9.10- py2.7.egg\ cssutils\ tokenize2. py", line 123, in tokenize
Windows-
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
TypeError: expected string or buffer