Skip to content

Commit

Permalink
fix #237 custom/ui/menu should return {} not HTTP 400
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmx committed Aug 5, 2024
1 parent 6f14af7 commit 3189633
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/asl_allmon/allmon3_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ def __proc_ui(self, request):
elif c[3] == "menu":
if self.config_web:
r_txt = self.config_web.menu
if r_txt == "":
r_txt = "{}"
else:
r_txt = "NONE"
r_txt = "{}"
elif c[3] == "overrides":
r_txt = json.dumps(self.config_web.node_overrides)
elif c[3] == "commands":
Expand Down

0 comments on commit 3189633

Please sign in to comment.