Skip to content

Commit 7fc0cd2

Browse files
committed
Remove raven
1 parent 2603dc1 commit 7fc0cd2

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

conditional/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from flask_gzip import Gzip
99
from flask_pyoidc.flask_pyoidc import OIDCAuthentication
1010
from flask_sqlalchemy import SQLAlchemy
11-
from raven.contrib.flask import Sentry
1211

1312
import sentry_sdk
1413
from sentry_sdk.integrations.flask import FlaskIntegration
@@ -30,7 +29,6 @@
3029
migrate = Migrate(app, db)
3130

3231
# Sentry setup
33-
sentry = Sentry(app)
3432
sentry_sdk.init(
3533
dsn=app.config['SENTRY_DSN'],
3634
integrations=[FlaskIntegration(), SqlalchemyIntegration()]
@@ -190,8 +188,7 @@ def route_errors(error, user_dict=None):
190188
return render_template('errors.html',
191189
error=error_desc,
192190
error_code=code,
193-
event_id=g.sentry_event_id,
194-
public_dsn=sentry.client.get_public_dsn('https'),
191+
event_id=sentry_sdk.last_event_id(),
195192
**data), int(code)
196193

197194

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ MarkupSafe~=1.0
1818
mccabe~=0.6.1
1919
oic~=0.11.0
2020
psycopg2~=2.8.5
21-
pyldap~=2.4.45
2221
pylint~=2.6.0
2322
python-dateutil~=2.6.1
2423
python-editor~=1.0.3
25-
raven~=6.10.0
2624
sentry-sdk[flask]~=0.19.5
2725
six~=1.12.0
2826
SQLAlchemy~=1.3.22

0 commit comments

Comments
 (0)