diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 0a815db62..87c276453 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -842,10 +842,10 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): return True def do_save_abbreviation(self, abbreviation): - out, err = run_fish_cmd('abbr --add \'%s %s\'' % ( + out, err = run_fish_cmd('abbr --add \'%s\' \'%s\'' % ( abbreviation['word'], abbreviation['phrase'])) - if err: - return err + if out or err: + return out else: return True