mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
Clean up code, clarify and remove an unnecessary try-except-block
This commit is contained in:
parent
98d1e21a90
commit
7c4cf8f9f0
2 changed files with 6 additions and 10 deletions
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue