lib: ignore installation specific errors

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-21 14:14:13 +02:00
parent 2015d91484
commit 02c736d784
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
from typing import Optional from typing import Optional
from aioredis.errors import ConnectionClosedError, ReplyError from aioredis.errors import ConnectionClosedError, ReplyError
from billiard.exceptions import WorkerLostError from billiard.exceptions import SoftTimeLimitExceeded, WorkerLostError
from botocore.client import ClientError from botocore.client import ClientError
from botocore.exceptions import BotoCoreError from botocore.exceptions import BotoCoreError
from celery.exceptions import CeleryError from celery.exceptions import CeleryError
@ -14,6 +14,7 @@ from django.http.response import Http404
from django_redis.exceptions import ConnectionInterrupted from django_redis.exceptions import ConnectionInterrupted
from docker.errors import DockerException from docker.errors import DockerException
from ldap3.core.exceptions import LDAPException from ldap3.core.exceptions import LDAPException
from psycopg2.errors import Error
from redis.exceptions import ConnectionError as RedisConnectionError from redis.exceptions import ConnectionError as RedisConnectionError
from redis.exceptions import RedisError, ResponseError from redis.exceptions import RedisError, ResponseError
from rest_framework.exceptions import APIException from rest_framework.exceptions import APIException
@ -52,6 +53,7 @@ def before_send(event: dict, hint: dict) -> Optional[dict]:
OSError, OSError,
PermissionError, PermissionError,
# Django Errors # Django Errors
Error,
ImproperlyConfigured, ImproperlyConfigured,
OperationalError, OperationalError,
InternalError, InternalError,
@ -73,6 +75,7 @@ def before_send(event: dict, hint: dict) -> Optional[dict]:
# celery errors # celery errors
WorkerLostError, WorkerLostError,
CeleryError, CeleryError,
SoftTimeLimitExceeded,
# S3 errors # S3 errors
BotoCoreError, BotoCoreError,
ClientError, ClientError,