X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/94f422ac82d9af46410c63775e4aeea77395a730..71202d8362833f2ef046d127ede8ae6f4e728236:/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)