davideuler / chm2pdf

Automatically exported from code.google.com/p/chm2pdf
GNU General Public License v2.0
0 stars 0 forks source link

some defensive safety net for string parsing in get_objective_urls_list(filename) #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Hi,

 the chm2pdf was crashing on some files I had. The problem was with the file I had and chm2pdf
was aborting midway in the generation of urls in urlslist.txt with some error 
message being added 
to urlslist.txt  too.

The appended error message contained in urlslist.txt  was causing chm2pdf to 
crash later on as

line: 119 (of trunk) 

  spline[5] wouldnt work.

adding a simple check 

 if len(spline) == 5: urls_list.append(spline[5])

takes care of it. Now it comes out more gracefully having generated as much of 
the pdf it could.

Thanks and regards

 -- sreangsu

Original issue reported on code.google.com by srean...@gmail.com on 21 Feb 2010 at 8:12