Re: Empty comments crashing pyblosxom

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
I'm looking into this.  Not sure if I had replied yet or not, but figured 
I'd reply now in case I didn't before so that you knew that I was looking 
into this and either replied, in which case you knew, or forgot to.

/will


On Thu, 19 May 2005, Murray Cumming wrote:
> 
> Since I upgrade to pyblosxom-1.2 yesterday (from 1.1), I've noticed I'm 
> getting lots of comments with empty bodies. For instance, see the 
> 2005-05-19-09-40-1116512105.56.cmt attached comment file.
>
> And these are crashing pyblosxom, with this message in my error.log:
>
> Traceback (most recent call last):
>  File "blog", line 57, in ?
>    p.run()
>  File
> "/home/murrayc/murrayc.com/blog_data/pyblosxom-1.2/Pyblosxom/pyblosxom.py", line 133, in run
>    blosxom_handler(self._request)
>  File
> "/home/murrayc/murrayc.com/blog_data/pyblosxom-1.2/Pyblosxom/pyblosxom.py", line 752, in blosxom_handler
>    renderer.render()
>  File
> "/home/murrayc/murrayc.com/blog_data/pyblosxom-1.2/Pyblosxom/renderers/blosxom.py", line 223, in render
>    self._processContent()
>  File
> "/home/murrayc/murrayc.com/blog_data/pyblosxom-1.2/Pyblosxom/renderers/blosxom.py", line 188, in _processContent
>    output, current_date = self._processEntry(entry, current_date)
>  File
> "/home/murrayc/murrayc.com/blog_data/pyblosxom-1.2/Pyblosxom/renderers/blosxom.py", line 153, in _processEntry
>    args = self._run_callback("story_end", { "entry": entry, "template":
> template })
>  File
> "/home/murrayc/murrayc.com/blog_data/pyblosxom-1.2/Pyblosxom/renderers/blosxom.py", line 312, in _run_callback
>    defaultfunc=lambda x:x)
>  File
> "/home/murrayc/murrayc.com/blog_data/pyblosxom-1.2/Pyblosxom/tools.py",
> line 438, in run_callback
>    output = mem(input)
>  File "/home/murrayc/murrayc.com/blog_data/plugins/comments.py", line
> 666, in cb_story_end
>    entry['comments'] = readComments(entry, config)
>  File "/home/murrayc/murrayc.com/blog_data/plugins/comments.py", line
> 215, in readComments
>    comments = [(cmt['cmt_time'], cmt) for cmt in comments]
> TypeError: unsubscriptable object


-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.