From 09d1feab80f84f17da8470648ffd5cfc9b12a496 Mon Sep 17 00:00:00 2001
From: viogq <55494528+viogq@users.noreply.github.com>
Date: Wed, 18 Sep 2019 13:00:29 +0000
Subject: [PATCH 1/2] error unless TRY used

---
 tools/readable_bash.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/readable_bash.py b/tools/readable_bash.py
index 5207a78a..6c8a7647 100644
--- a/tools/readable_bash.py
+++ b/tools/readable_bash.py
@@ -225,7 +225,7 @@ class EditConf(Grammar):
 		conffile = self[1]
 		options = []
 		eq = "="
-		if self[3] and "-s" in self[3].string: eq = " "
+		if self[3] and "-s" in self[3].string: eq = " "    ##   try  except   #  else err
 		for opt in re.split("\s+", self[4].string):
 			k, v = opt.split("=", 1)
 			v = re.sub(r"\n+", "", fixup_tokens(v)) # not sure why newlines are getting doubled

From d1c63b6517240455db9c5c844b1886125304b9a7 Mon Sep 17 00:00:00 2001
From: viogq <55494528+viogq@users.noreply.github.com>
Date: Wed, 18 Sep 2019 14:23:36 +0000
Subject: [PATCH 2/2] fix err: 1 arg missing corner case

---
 tools/readable_bash.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tools/readable_bash.py b/tools/readable_bash.py
index 6c8a7647..4891a6ee 100644
--- a/tools/readable_bash.py
+++ b/tools/readable_bash.py
@@ -225,11 +225,13 @@ class EditConf(Grammar):
 		conffile = self[1]
 		options = []
 		eq = "="
-		if self[3] and "-s" in self[3].string: eq = " "    ##   try  except   #  else err
-		for opt in re.split("\s+", self[4].string):
-			k, v = opt.split("=", 1)
+		if self[3] and "-s" in self[3].string: eq = " "    
+        try:
+		  for opt in re.split("\s+", self[4].string):
+			k, v = opt.split("=", 1)                # try  except   ,  else err:  1 arg missing
 			v = re.sub(r"\n+", "", fixup_tokens(v)) # not sure why newlines are getting doubled
 			options.append("%s%s%s" % (k, eq, v))
+        except: pass
 		return "<div class='write-to'><div class='filename'>" + self[1].string + " <span>(change settings)</span></div><pre>" + "\n".join(cgi.escape(s) for s in options) + "</pre></div>\n"
 
 class CaptureOutput(Grammar):