From 6675259ca29e251bffee085a74a08b52871deb1e Mon Sep 17 00:00:00 2001 From: Rechner Fox <659028+rechner@users.noreply.github.com> Date: Sun, 29 Dec 2024 15:03:10 -0800 Subject: [PATCH 1/2] Pin Django actions build to use 22.04 (#341) --- .github/workflows/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 04754d25..43a10977 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: max-parallel: 4 matrix: From 3dad9ddc285ffb6f335ecbfd107d5dd1a6590635 Mon Sep 17 00:00:00 2001 From: Matt Ullman Date: Sun, 29 Dec 2024 18:50:14 -0500 Subject: [PATCH 2/2] Fix crash when SENTRY_ENABLED is undefined (#342) Otherwise eval_bool is called on x where x is None, leading to None.lower() which causes: AttributeError: 'NoneType' object has no attribute 'lower' --- fm_eventmanager/settings.py.docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fm_eventmanager/settings.py.docker b/fm_eventmanager/settings.py.docker index aa7b8035..981dd69c 100644 --- a/fm_eventmanager/settings.py.docker +++ b/fm_eventmanager/settings.py.docker @@ -16,7 +16,7 @@ from idempotency_key import status eval_bool = lambda x: x.lower() in ('true', '1', 't', 'y', 'yes') -SENTRY_ENABLED = eval_bool(os.environ.get("SENTRY_ENABLED")) +SENTRY_ENABLED = eval_bool(os.environ.get("SENTRY_ENABLED", "")) if SENTRY_ENABLED: import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration