qotnews/apiserver
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
..
data Remove Whoosh 2020-11-02 00:22:40 +00:00
feeds Handle Lobsters comment parsing TypeErrors 2023-08-31 07:30:39 +00:00
.gitignore Update gitignore 2020-12-11 23:49:45 +00:00
database.py Begin script to fix bad gzip text 2022-07-04 20:32:01 +00:00
delete-story.py Add a script to delete a story 2020-10-03 23:42:21 +00:00
feed.py Improve logging, sends tweets to nitter.net 2022-03-05 23:48:46 +00:00
fix-stories.py Fix fix-stories bug 2022-08-10 04:06:39 +00:00
reindex.py Begin script to fix bad gzip text 2022-07-04 20:32:01 +00:00
requirements.txt Remove Whoosh 2020-11-02 00:22:40 +00:00
search.py Move FEED_LENGTH to settings.py, use for search results 2022-07-04 19:08:24 +00:00
server.py Move FEED_LENGTH to settings.py, use for search results 2022-07-04 19:08:24 +00:00
settings.py.example Move FEED_LENGTH to settings.py, use for search results 2022-07-04 19:08:24 +00:00
test.py Add test file 2022-07-04 05:56:06 +00:00
utils.py Add del tag and sort tags 2020-01-04 23:37:41 +00:00