Skip to content

Commit

Permalink
#2172 - Update to aviod Missing environment sid for type
Browse files Browse the repository at this point in the history
  • Loading branch information
MackHalliday committed Feb 6, 2025
1 parent 7dc9253 commit 363fbe6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions application.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
from sentry_sdk.integrations.flask import FlaskIntegration
from werkzeug.middleware.proxy_fix import ProxyFix

from app import create_app
from app.version import __git_commit__

# Imports out of order to avoid issues with error 'Missing environment sid for type'
from dotenv import load_dotenv

load_dotenv()

from app import create_app # noqa E402
from app.version import __git_commit__ # noqa E402

sentry_sdk.init(
dsn=os.environ.get('SENTRY_URL', ''),
integrations=[FlaskIntegration()],
Expand Down

0 comments on commit 363fbe6

Please sign in to comment.