Skip to content

Commit

Permalink
Catch errors in article parser to make it run more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacialCircumstances committed Sep 29, 2017
1 parent 5b7d8db commit ddb472c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ def main():
article_count += 1
article = queued_articles.pop(0)
print(article + ":" + str(article_count))
queued_articles = parse_article(queued_articles, article)
try:
queued_articles = parse_article(queued_articles, article)
except Exception as e:
log.log("Error: " + str(e))

else:
running = False
Expand Down

0 comments on commit ddb472c

Please sign in to comment.