Skip to content

Commit

Permalink
allow user to be defined as none
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Dec 10, 2024
1 parent 2f54eab commit 587c36e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sentry/web/frontend/react_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def handle_react(self, request: Request, **kwargs) -> HttpResponse:
react_config = get_client_config(request, org_context)

user_theme = ""
if react_config and react_config.get("user", {}).get("options", {}).get("theme", None):
if react_config.get("user", None) and react_config["user"].get("options", {}).get(
"theme", None
):
user_theme = f"theme-{react_config['user']['options']['theme']}"

context = {
Expand Down

0 comments on commit 587c36e

Please sign in to comment.