From ad66831324750603a386308bcdeeb96868e7adee Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Thu, 23 Feb 2023 16:48:13 -0500 Subject: [PATCH] confighelper: getlists bugfix If a valid "count" argument is received do not overwrite it with "None" values. Signed-off-by: Eric Callahan --- moonraker/confighelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/confighelper.py b/moonraker/confighelper.py index c0ca373..92b0247 100644 --- a/moonraker/confighelper.py +++ b/moonraker/confighelper.py @@ -252,7 +252,7 @@ class ConfigHelper: f"Option '{option}' in section " f"[{self.section}]: length of 'count' argument must ", "match length of 'separators' argument") - else: + elif count is None: count = tuple(None for _ in range(len(separators))) def list_parser(value: str,