qotnews/apiserver/feeds
Tanner Collin c65fb69092 Handle Lobsters comment parsing TypeErrors
Too lazy to debug this:

2023-08-29 12:56:35,111 - root - INFO - Updating lobsters story: yktkwr, index: 55
Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 854, in gevent._gevent_cgreenlet.Greenlet.run
  File "/home/tanner/qotnews/apiserver/server.py", line 194, in feed_thread
    valid = feed.update_story(story)
  File "/home/tanner/qotnews/apiserver/feed.py", line 74, in update_story
    res = lobsters.story(story['ref'])
  File "/home/tanner/qotnews/apiserver/feeds/lobsters.py", line 103, in story
    s['comments'] = iter_comments(r['comments'])
  File "/home/tanner/qotnews/apiserver/feeds/lobsters.py", line 76, in iter_comments
    parent_stack = parent_stack[:indent-1]
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
2023-08-29T12:56:35Z <Greenlet at 0x7f92ad840ae0: feed_thread> failed with TypeError
2023-08-31 07:30:39 +00:00
..
hackernews.py Improve logging, sends tweets to nitter.net 2022-03-05 23:48:46 +00:00
lobsters.py Handle Lobsters comment parsing TypeErrors 2023-08-31 07:30:39 +00:00
manual.py Improve logging, sends tweets to nitter.net 2022-03-05 23:48:46 +00:00
reddit.py Catch all possible Reddit API exceptions 2023-03-15 21:16:37 +00:00
tildes.py Add Tildes group whitelist 2023-07-13 22:54:36 +00:00