From 84181adf61c6972930b254f1d1da2bcc4cce0b48 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 25 Sep 2020 11:24:58 +1000 Subject: rtemstoolkit/configuration: Treat an empty variable as an empty list --- rtemstoolkit/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemstoolkit/configuration.py b/rtemstoolkit/configuration.py index a73fd9b..1f57de4 100644 --- a/rtemstoolkit/configuration.py +++ b/rtemstoolkit/configuration.py @@ -140,7 +140,7 @@ class configuration: def comma_list(self, section, label, err = True): items = self.get_item(section, label, err) - if items is None: + if items is None or len(items) == 0: return [] return sorted(set([a.strip() for a in items.split(',')])) -- cgit v1.2.3