Skip to content

Commit

Permalink
fix(exc): log missing host_org record error state scidsg#573
Browse files Browse the repository at this point in the history
Suggested in review:
scidsg#573 (comment)

For Roadmap Item scidsg#533

Co-authored-by: brassy endomorph <[email protected]>
  • Loading branch information
rmlibre and brassy-endomorph committed Sep 18, 2024
1 parent 007cf1b commit 4097ffe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hushline/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ def update_smtp_settings() -> Response | str:
@admin_authentication_required
def update_brand_primary_color() -> Response | str:
if (host_org := HostOrganization.default()) is None:
current_app.logger.error("Fatal! `host_org` record is undefined.")
abort(500)

form = UpdateBrandPrimaryColorForm()
Expand All @@ -739,6 +740,7 @@ def update_brand_primary_color() -> Response | str:
@admin_authentication_required
def update_brand_app_name() -> Response | str:
if (host_org := HostOrganization.default()) is None:
current_app.logger.error("Fatal! `host_org` record is undefined.")
abort(500)

form = UpdateBrandAppNameForm()
Expand Down

0 comments on commit 4097ffe

Please sign in to comment.