fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use strict xml validator
[redakcja.git]
/
apps
/
catalogue
/
tasks.py
diff --git
a/apps/catalogue/tasks.py
b/apps/catalogue/tasks.py
index
c84a291
..
ca69625
100644
(file)
--- a/
apps/catalogue/tasks.py
+++ b/
apps/catalogue/tasks.py
@@
-1,6
+1,5
@@
from celery.task import task
from django.utils import translation
-from django.conf import settings
@task(ignore_result=True)
@@
-25,7
+24,7
@@
def _publishable_error(book, language=None):
except AssertionError, e:
return e
else:
- return None
+
return None
finally:
translation.activate(prev_language)