From 0024e25c14bbf4cdc116cdcecd60355b99f4017b Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Wed, 1 May 2019 14:52:21 +1200 Subject: [PATCH] Ignore blank strings (i.e. empty, or filled with spaces only) --- cylc/flow/parsec/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cylc/flow/parsec/validate.py b/cylc/flow/parsec/validate.py index 62a724b2c01..d9e380e0820 100644 --- a/cylc/flow/parsec/validate.py +++ b/cylc/flow/parsec/validate.py @@ -361,7 +361,7 @@ def strip_and_unquote_list(cls, keys, value): lexer.whitespace_split = False lexer.whitespace = "\t\n\r" lexer.wordchars += " " - values = [t.strip() for t in lexer if t != ","] + values = [t.strip() for t in lexer if t != "," and t.strip()] else: # unquoted values (may contain internal quoted strings with list # delimiters inside 'em!)