Skip to content

Commit 16ebd1c

Browse files
committed
Removed useless ignoring of errors
1 parent 30b5e0b commit 16ebd1c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

backend/PyMatcha/__init__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -185,23 +185,6 @@ def expired_token_callback(expired_token):
185185

186186

187187
from PyMatcha.utils.errors import NotFoundError
188-
from PyMatcha.utils.errors.base_class import CustomException
189-
190-
191-
def before_send(event, hint):
192-
if "exc_info" in hint:
193-
exc_type, exc_value, tb = hint["exc_info"]
194-
if issubclass(exc_value, CustomException):
195-
return None
196-
return event
197-
198-
199-
sentry_sdk.init(
200-
dsn="https://bb17c14c99d448e2804bf2f105d4ec52@o450203.ingest.sentry.io/5434438",
201-
integrations=[FlaskIntegration()],
202-
traces_sample_rate=1.0,
203-
before_send=before_send,
204-
)
205188

206189

207190
@jwt.user_loader_callback_loader

0 commit comments

Comments
 (0)