From: Charles Connell Date: Tue, 31 Dec 2013 04:31:11 +0000 (-0500) Subject: Don't let one error halt document indexing X-Git-Tag: release-20150131~345 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7b7a5db70183635c76031b8d9407ac7766c1a0e;p=oweals%2Fkarmaworld.git Don't let one error halt document indexing --- diff --git a/karmaworld/apps/notes/management/commands/populate_indexden.py b/karmaworld/apps/notes/management/commands/populate_indexden.py index 4573b8c..421c0cc 100644 --- a/karmaworld/apps/notes/management/commands/populate_indexden.py +++ b/karmaworld/apps/notes/management/commands/populate_indexden.py @@ -16,6 +16,9 @@ class Command(BaseCommand): notes = Note.objects.all() for note in notes: - print "Indexing {n}".format(n=note) - add_document(note) + try: + print "Indexing {n}".format(n=note) + add_document(note) + except: + continue