fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quotes in API
[wolnelektury.git]
/
src
/
search
/
management
/
commands
/
reindex.py
diff --git
a/src/search/management/commands/reindex.py
b/src/search/management/commands/reindex.py
index
f982b2a
..
b8cb49c
100755
(executable)
--- a/
src/search/management/commands/reindex.py
+++ b/
src/search/management/commands/reindex.py
@@
-3,6
+3,8
@@
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
import sys
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
import sys
+import traceback
+
from django.core.management.base import BaseCommand
from optparse import make_option
from django.core.management.base import BaseCommand
from optparse import make_option
@@
-74,8
+76,8
@@
class Command(BaseCommand):
idx.index_book(b)
idx.index.commit()
books.pop(0)
idx.index_book(b)
idx.index.commit()
books.pop(0)
- except
Exception, e
:
- print "Error occured: %s" % e
+ except:
+ traceback.print_exc()
try:
# we might not be able to rollback
idx.index.rollback()
try:
# we might not be able to rollback
idx.index.rollback()