From 0274c98e50f0cf90ade3675d6fa7d031ff5a44fa Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 8 Oct 2020 17:27:13 +0100 Subject: [PATCH] config.py: Convert darwin test to isinstance(val, list) as well --- config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index bbd4c3b9..a6574652 100644 --- a/config.py +++ b/config.py @@ -179,10 +179,13 @@ class Config(object): val = self.settings.get(key) if val is None: return None + elif isinstance(val, str): return str(val) - elif hasattr(val, '__iter__'): + + elif isinstance(val, list): return list(val) # make writeable + else: return None