mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 04:25:42 +00:00
Ignore MissingRate errors (#8420)
* Improved permission checking for data importing - Permission checks on the imported model type * Improved validation for DateField * Ignore MissingRate errors - Do not send these to sentry
This commit is contained in:
@ -8,6 +8,7 @@ from django.http import Http404
|
||||
|
||||
import rest_framework.exceptions
|
||||
import sentry_sdk
|
||||
from djmoney.contrib.exchange.exceptions import MissingRate
|
||||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
|
||||
import InvenTree.version
|
||||
@ -27,6 +28,7 @@ def sentry_ignore_errors():
|
||||
"""
|
||||
return [
|
||||
Http404,
|
||||
MissingRate,
|
||||
ValidationError,
|
||||
rest_framework.exceptions.AuthenticationFailed,
|
||||
rest_framework.exceptions.NotAuthenticated,
|
||||
|
Reference in New Issue
Block a user