From 109236603b20297c34b6a1008380c021cea889f7 Mon Sep 17 00:00:00 2001 From: Ziirish Date: Fri, 1 Jun 2018 11:35:27 +0200 Subject: [PATCH] fixing broken include --- dotdrop/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dotdrop/config.py b/dotdrop/config.py index 13eae00..3b6b723 100644 --- a/dotdrop/config.py +++ b/dotdrop/config.py @@ -90,7 +90,8 @@ class Cfg: pro = self.content[self.key_profiles] tosave = False for k in pro.keys(): - if self.key_profiles_dots not in pro[k]: + if self.key_profiles_dots not in pro[k] and \ + self.key_profiles_incl not in pro[k]: pro[k] = {self.key_profiles_dots: pro[k]} tosave = True if tosave: @@ -138,7 +139,8 @@ class Cfg: self.content[self.key_profiles] = {} self.profiles = self.content[self.key_profiles] for k, v in self.profiles.items(): - if v[self.key_profiles_dots] is None: + if self.key_profiles_dots in v and \ + v[self.key_profiles_dots] is None: v[self.key_profiles_dots] = [] # parse the configs