mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Rescuing story bootstrapping.
This commit is contained in:
parent
f90029eed1
commit
a7d5ff3cfe
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ def bootstrap_stories():
|
|||
story['story_tags'] = json.decode(story['story_tags'])
|
||||
del story['id']
|
||||
del story['story_author_id']
|
||||
MStory(**story).save()
|
||||
try:
|
||||
MStory(**story).save()
|
||||
except:
|
||||
continue
|
||||
|
||||
print "\nMongo DB stories: %s" % MStory.objects().count()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue