"""Loads celery or non-celery version."""
from django.conf import settings

try:
    from .tasks import write_points as write_points_celery
except Exception:
    write_points_celery = None

from .utils import write_points as write_points_normal

write_points = None
if getattr(settings, 'INFLUXDB_USE_CELERY', False):
    write_points = write_points_celery.delay
else:
    write_points = write_points_normal

"""Loads celery or non-celery version."""
from django.conf import settings

try:
    from .tasks import write_points as write_points_celery
except ImportError:
    write_points_celery = None

from .utils import write_points as write_points_normal

write_points = None
if getattr(settings, 'INFLUXDB_USE_CELERY', False):
    write_points = write_points_celery.delay
else:
    write_points = write_points_normal

Fix to not silently swallow all Exceptions.
Fix to not silently swallow all Exceptions.

Great lib, thanks!