Chm2pdf fails to process chm's without table of contents

Bug #1074699 reported by Reto Knaak
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
chm2pdf (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This was reported on https://groups.google.com/forum/#!topic/chm2pdf/SeOGMcMFsBw/discussion

An example of file without toc is in the attchment chmtest_noToc.chm
When trying to convert it by chm2pdf:

chm2pdf --book chmtest_noToc.chm
Traceback (most recent call last):
  File "/usr/local/bin/chm2pdf", line 1156, in <module>
    main(sys.argv)
  File "/usr/local/bin/chm2pdf", line 1150, in main
    convert_to_pdf(cfile, filename, outputfilename, options)
  File "/usr/local/bin/chm2pdf", line 343, in convert_to_pdf
    html_list=get_html_list(cfile)
  File "/usr/local/bin/chm2pdf", line 109, in get_html_list
    lister.feed(topicstree)
  File "/usr/lib/python2.6/sgmllib.py", line 103, in feed
    self.rawdata = self.rawdata + data
TypeError: cannot concatenate 'str' and 'NoneType' objects

A fix has been posted here: lp:~grishkin/chm2pdf/chm2pdf_branch

Related branches

Revision history for this message
Reto Knaak (reto-knaak) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in chm2pdf (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.