From 0373c928fb20be6bebde7ab55ba0953a70d0adde Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 20 May 2020 11:46:28 +0200 Subject: Install: fix celery import on utils --- install/ishtar-install | 2 -- ishtar_common/utils.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/install/ishtar-install b/install/ishtar-install index 208ac29f0..291ebff16 100755 --- a/install/ishtar-install +++ b/install/ishtar-install @@ -421,8 +421,6 @@ EOF python3-unidecode \ python3-xmltodict \ python3-django-simple-history \ - python3-secretary \ - python3-weasyprint \ python3-django \ python3-ajax-select \ python3-djangorestframework \ diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index f18544ea9..41a844026 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -93,7 +93,7 @@ if settings.USE_BACKGROUND_TASK: try: from celery import shared_task task = shared_task - except ImportError: + except ModuleNotFoundError: pass -- cgit v1.2.3