web: improve failed request handling
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
02c736d784
commit
93e27d1959
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Reference in New Issue