diff --git a/sentry_sdk/integrations/celery/__init__.py b/sentry_sdk/integrations/celery/__init__.py index 8445e66674..6d77f4c19b 100644 --- a/sentry_sdk/integrations/celery/__init__.py +++ b/sentry_sdk/integrations/celery/__init__.py @@ -39,8 +39,8 @@ try: from celery import VERSION as CELERY_VERSION # type: ignore - from celery.app.trace import task_has_custom from celery.app.task import Task + from celery.app.trace import task_has_custom from celery.exceptions import ( # type: ignore Ignore, Reject,