baianoweb / google-blog-converters-appengine

Automatically exported from code.google.com/p/google-blog-converters-appengine
Apache License 2.0
0 stars 0 forks source link

bug, comments post link :wordpress2blogger #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I exported my blog from wordpress.
2. Run through wordpress2blogger
3. It crashes

What is the expected output? What do you see instead?
i get this:
Error encountered during conversion.

Traceback (most recent call last):
File 
"/base/data/home/apps/wordpress2blogger/1.340555247028447310/wordpress2blogger.p
y", line 43, in post
translator.Translate(input, self.response.out)
File "/base/data/home/apps/wordpress2blogger/1.340555247028447310/wp2b.py", 
line 150, in Translate
xml.sax.parseString(self.RemoveMetaData(doc), self)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/__init__.py", line 
49, in parseString
parser.parse(inpsrc)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", 
line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/xmlreader.py", 
line 123, in parse
self.feed(buffer)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", 
line 207, in feed
self._parser.Parse(data, isFinal)
File "/base/python_runtime/python_dist/lib/python2.5/xml/sax/expatreader.py", 
line 301, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/base/data/home/apps/wordpress2blogger/1.340555247028447310/wp2b.py", 
line 174, in startElement
handler()
File "/base/data/home/apps/wordpress2blogger/1.340555247028447310/wp2b.py", 
line 320, in startComment
self.comments[0].link.append(self.current_post.link[0])
IndexError: list index out of range

Please provide any additional information below.

If i change that 
self.comments[0].link.append(self.current_post.link[0])
to only happen if len(self.current_post.link) > 0

it works.

Thanks guys nice tool.

Original issue reported on code.google.com by StephenNancekivell@gmail.com on 25 Apr 2011 at 9:29