bookieio/breadability

None type error in readable parsing

mitechie opened this issue · 0 comments

[D 120827 20:17:42 existing:67] Q1 getting content for a6bb837b68038a http://themeforest.net/item/themeology-portfolio-and-blog-theme/full_screen_preview/127873

Exception in thread Thread-1325:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in *bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(_self.__args, _self.__kwargs)
File "scripts/readability/existing.py", line 68, in fetch_content
read = ReadUrl.parse(url)
File "/home/bmark.us/0.5/bookie/lib/readable.py", line 176, in parse
if not document.readable:
File "/home/bmark.us/0.5/lib/python2.6/site-packages/breadability/utils.py", line 55, in __get

value = self.fget(inst)
File "/home/bmark.us/0.5/lib/python2.6/site-packages/breadability/readable.py", line 457, in readable
return tounicode(self._readable)
File "/home/bmark.us/0.5/lib/python2.6/site-packages/breadability/utils.py", line 55, in get
value = self.fget(inst)
File "/home/bmark.us/0.5/lib/python2.6/site-packages/breadability/readable.py", line 482, in _readable
doc = build_base_document(updated_winner.node, self.fragment)
File "/home/bmark.us/0.5/lib/python2.6/site-packages/breadability/readable.py", line 93, in build_base_document
if html.tag == 'body':
AttributeError: 'NoneType' object has no attribute 'tag'