confighelper: getlists bugfix

If a valid "count" argument is received do not overwrite it
with "None" values.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-02-23 16:48:13 -05:00
parent 834fa2e4e0
commit ad66831324
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -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,