diff --git a/database-cleanup/database_cleanup/app.py b/database-cleanup/database_cleanup/app.py index f0b8767..b072a7f 100644 --- a/database-cleanup/database_cleanup/app.py +++ b/database-cleanup/database_cleanup/app.py @@ -12,7 +12,6 @@ import uuid import sentry_sdk import pkg_resources -my_version = pkg_resources.get_distribution('database-cleanup').version import click import sqlalchemy as sa @@ -21,6 +20,8 @@ _log = logging.getLogger(__name__) +my_version = pkg_resources.get_distribution('database-cleanup').version + sentry_sdk.init( dsn=os.getenv("SENTRY_DSN"), environment=os.getenv("ENVIRONMENT", "local"), diff --git a/forecast-inference/forecast_inference/app.py b/forecast-inference/forecast_inference/app.py index f5f4998..36e2ad4 100644 --- a/forecast-inference/forecast_inference/app.py +++ b/forecast-inference/forecast_inference/app.py @@ -9,7 +9,6 @@ from uuid import UUID import sentry_sdk import pkg_resources -my_version = pkg_resources.get_distribution('forecast_inference').version import click import dotenv @@ -26,6 +25,8 @@ _log = logging.getLogger(__name__) +my_version = pkg_resources.get_distribution('forecast_inference').version + sentry_sdk.init( dsn=os.getenv("SENTRY_DSN"), environment=os.getenv("ENVIRONMENT", "local"),