X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/94f422ac82d9af46410c63775e4aeea77395a730..c4599df2f08c95fd317967746a3325c3b168acdd:/apps/catalogue/tasks.py?ds=inline diff --git a/apps/catalogue/tasks.py b/apps/catalogue/tasks.py index c84a2912..ca696256 100644 --- 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)