I suppose that we should remove the logic that I wrote some time ago if we are going in this direction:
With ref to comment:
I tried making a simple task with celery and using
# tasks.py from celery import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task(throws=(ZeroDivisionError,)) def divide(x, y): if y == 0: raise ZeroDivisionError("Divide by zero") return x/y
And when i tried
And as per the Sentry docs, this must not be logged.