From c75ecf9b0377ec8ec845d0a6fbef32c3dbb62ef8 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 13 Dec 2021 20:20:39 +0100 Subject: [PATCH] webconfig: Allow setting a variable to empty --- share/tools/web_config/webconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index e26b8e4b0..3759f7c09 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -1110,7 +1110,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): "Sets a color for a fish color name, like 'autosuggestion'" if not name: raise ValueError - if not color: + if not color and not color == "": color = "normal" varname = "fish_color_" + name # If the name already starts with "fish_", use it as the varname