From fbb2fb2e2c76c7780ff764f712b6504c08ed60ec Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 15 Sep 2017 17:24:15 +0200 Subject: [PATCH] is None vs [] --- dotdrop/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotdrop/config.py b/dotdrop/config.py index 43e5c72..656fc4f 100644 --- a/dotdrop/config.py +++ b/dotdrop/config.py @@ -101,7 +101,7 @@ class Cfg: self.content[self.key_profiles] = {} self.profiles = self.content[self.key_profiles] for k, v in self.profiles.items(): - if not v[self.key_profiles_dots]: + if v[self.key_profiles_dots] is None: v[self.key_profiles_dots] = [] # parse the configs