bibanon / BASC-py4chan

Python wrapper for 4chan API. The BA's vastly improved fork of Edgeworth's original.
http://basc-py4chan.readthedocs.org/en/latest/index.html
Do What The F*ck You Want To Public License
55 stars 13 forks source link

Update exception #14

Closed DanielOaks closed 9 years ago

DanielOaks commented 9 years ago

Got this exception while updating a thread, should fix it:

Traceback (most recent call last):
  File "<etc>/basc_archiver/sites/base.py", line 62, in run
    self.site.download_item(next_item)
  File "<etc>/basc_archiver/sites/fourchan.py", line 219, in download_item
    new_replies = thread['thread'].update()
  File "<etc>/basc_py4chan/thread.py", line 172, in update
    self.replies.extend(Post(self, p) for p in posts if p['no'] > self.last_reply_id)
  File "<etc>/basc_py4chan/thread.py", line 172, in <genexpr>
    self.replies.extend(Post(self, p) for p in posts if p['no'] > self.last_reply_id)
KeyError: 'no'