diff --git a/contrib/tools/archive/nntparchive/archiver.py b/contrib/tools/archive/nntparchive/archiver.py index fc9a14b..3602fc2 100755 --- a/contrib/tools/archive/nntparchive/archiver.py +++ b/contrib/tools/archive/nntparchive/archiver.py @@ -118,11 +118,12 @@ class Getter: yield a bunch of articles """ r = requests.get(self.url) - j = r.json() - for t in j['threads']: - posts = t['posts'] - for post in posts: - yield Article(post, self.board, self.site) + if r.status_code == 200: + j = r.json() + for t in j['threads']: + posts = t['posts'] + for post in posts: + yield Article(post, self.board, self.site)