X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/94f422ac82d9af46410c63775e4aeea77395a730..36a01feacb6dd0da10fab3c6500eadf91c2336cd:/apps/catalogue/tasks.py 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)