Skip to content

Commit 3852283

Browse files
committed
put in a guard when redis isn't set
1 parent 8e290e3 commit 3852283

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/workbench/web_interface/components/plugins/dashboard_status.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def update_properties(self, config_info: dict, **kwargs) -> list:
7272
details = "**Redis:** 🔴 Failed to Connect<br>"
7373

7474
# Fill in the license details
75-
details += f"**Redis Server:** {config_info['REDIS_HOST']}:{config_info.get('REDIS_PORT', 6379)}<br>"
75+
redis_host = config_info.get("REDIS_HOST", "NOT SET")
76+
redis_port = config_info.get("REDIS_PORT", "NOT SET")
77+
details += f"**Redis Server:** {redis_host}:{redis_port}<br>"
7678
details += f"**Workbench S3 Bucket:** {config_info['WORKBENCH_BUCKET']}<br>"
7779
details += f"**Plugin Path:** {config_info.get('WORKBENCH_PLUGINS', 'unknown')}<br>"
7880
details += f"**Themes Path:** {config_info.get('WORKBENCH_THEMES', 'unknown')}<br>"

0 commit comments

Comments
 (0)