Clean up code, clarify and remove an unnecessary try-except-block

This commit is contained in:
Arne Schlüter 2014-12-11 00:24:41 +01:00
commit 7c4cf8f9f0
2 changed files with 6 additions and 10 deletions

View file

@ -34,8 +34,7 @@ for article in articles:
try:
Article.get(Article.hash == digest)
except:
# article not found
except Article.DoesNotExist:
Article.create(
date = article['date'],
month_only = article['month_only'],