Skip to content
Snippets Groups Projects
Verified Commit 27cc2e36 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Always import Celery config if available

parent 89558a17
No related branches found
No related tags found
1 merge request!123Resolve "Background Tasks / Task Broker"
Pipeline #663 failed
import pkg_resources
try:
from .celery import app as celery_app
except ModuleNotFoundError:
# Celery is not available
celery_app = None
try:
__version__ = pkg_resources.get_distribution("AlekSIS").version
except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment