File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 88from flask_gzip import Gzip
99from flask_pyoidc .flask_pyoidc import OIDCAuthentication
1010from flask_sqlalchemy import SQLAlchemy
11- from raven .contrib .flask import Sentry
1211
1312import sentry_sdk
1413from sentry_sdk .integrations .flask import FlaskIntegration
3029migrate = Migrate (app , db )
3130
3231# Sentry setup
33- sentry = Sentry (app )
3432sentry_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
Original file line number Diff line number Diff line change @@ -18,11 +18,9 @@ MarkupSafe~=1.0
1818mccabe ~= 0.6.1
1919oic ~= 0.11.0
2020psycopg2 ~= 2.8.5
21- pyldap ~= 2.4.45
2221pylint ~= 2.6.0
2322python-dateutil ~= 2.6.1
2423python-editor ~= 1.0.3
25- raven ~= 6.10.0
2624sentry-sdk [flask ]~= 0.19.5
2725six ~= 1.12.0
2826SQLAlchemy ~= 1.3.22
You can’t perform that action at this time.
0 commit comments