Empty comments crashing pyblosxom
Murray Cumming <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
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
--
Murray Cumming
[email protected]
www.murrayc.com
www.openismus.com
2005-05-19-09-40-1116512105.56.cmt
(text/html, 130 B)
<?xml version="1.0" encoding="UTF-8"?> <item> <title>Mac-style Hierarchical Spatial</title> <author>Justin</author> <link></link>