techblogger5 / 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

b2wp.py - IndexError: list index out of range #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Execute the blogger2wordpress.sh script with the XML as parameter
2. Wait
3. The result is an error

What is the expected output? What do you see instead?
The WXR Wordpress export file. Nothing.

What version of the product are you using? On what operating system?

1.0.r54
opensuse 11.1
Kernel 2.6.27.7-9-pae
Python 2.6

This error occurs both in my system and in
http://blogger2wordpress.appspot.com/

Please provide any additional information below.

The XML file is attached.

In my machine:

$./blogger2wordpress.sh blog-01-13-2009.xml 

Traceback (most recent call last):
  File "./../src/blogger2wordpress/b2wp.py", line 237, in <module>
    print translator.Translate()
  File "./../src/blogger2wordpress/b2wp.py", line 99, in Translate
    entry.FindExtensions('in-reply-to')[0].attributes['ref'])
IndexError: list index out of range

In the appspot:

Traceback (most recent call last):
  File
"/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line
500, in __call__
    handler.post(*groups)
  File
"/base/data/home/apps/blogger2wordpress/1.330676546996634919/blogger2wordpress.p
y",
line 37, in post
    output = translator.Translate()
  File
"/base/data/home/apps/blogger2wordpress/1.330676546996634919/b2wp.py", line
99, in Translate
    entry.FindExtensions('in-reply-to')[0].attributes['ref'])
IndexError: list index out of range

Original issue reported on code.google.com by tiagovel...@gmail.com on 14 Jan 2009 at 3:32

Attachments:

GoogleCodeExporter commented 8 years ago
I've seen this problem show up int the logs of the hosted service.  Definitely 
a big
problem.

I believe that this is the case where there is not Atom {{{<in-reply-to>}}} 
element
for a comment.  Blogger downloads should always include this element for 
comments,
but I guess this isn't always the case.

I'll work on this today.

Original comment by jlu...@gmail.com on 14 Jan 2009 at 3:20

GoogleCodeExporter commented 8 years ago
The fix has been checked in and the blogger2wordpress hosted service has been
updated.  The blog file included in this issue is converted properly now.

Original comment by jlu...@gmail.com on 14 Jan 2009 at 4:39