mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-23 20:33:22 +02:00
Fix #106
This commit is contained in:
parent
4abdc096af
commit
a082131823
2 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@
|
|||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
''' E-book management software'''
|
||||
__version__ = "0.3.51"
|
||||
__version__ = "0.3.52"
|
||||
__docformat__ = "epytext"
|
||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||
__appname__ = 'libprs500'
|
||||
|
|
|
|||
|
|
@ -643,8 +643,8 @@ def getSettings(self):
|
|||
|
||||
|
||||
def addTocEntry(self, tocLabel, textBlock):
|
||||
if not isinstance(textBlock, (TextBlock, ImageBlock, RuledLine)):
|
||||
raise LrsError, "TOC destination must be a TextBlock, ImageBlock or RuledLine"+\
|
||||
if not isinstance(textBlock, (Canvas, TextBlock, ImageBlock, RuledLine)):
|
||||
raise LrsError, "TOC destination must be a Canvas, TextBlock, ImageBlock or RuledLine"+\
|
||||
" not a " + str(type(textBlock))
|
||||
|
||||
if textBlock.parent is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue