web: improve failed request handling

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-21 14:17:31 +02:00
parent 02c736d784
commit 93e27d1959
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,8 @@ 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
# pylint: disable=no-name-in-module
from psycopg2.errors import Error 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

View file

@ -32,7 +32,7 @@ export function configureSentry(canDoPpi: boolean = false): Promise<Config> {
return null; return null;
} }
} }
if (hint.originalException instanceof Response) { if (hint.originalException instanceof Response || hint.originalException instanceof DOMException) {
return null; return null;
} }
if (event.exception) { if (event.exception) {