From 873a22bab698c11cb32dfae543e0ff402ff8ef9f Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Wed, 29 Jan 2020 14:09:50 +0100 Subject: [PATCH] ensure profile dotfiles is not None --- dotdrop/cfg_yaml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotdrop/cfg_yaml.py b/dotdrop/cfg_yaml.py index f117b67..9990fff 100644 --- a/dotdrop/cfg_yaml.py +++ b/dotdrop/cfg_yaml.py @@ -696,7 +696,8 @@ class CfgYaml: """add an existing dotfile key to a profile_key""" self._new_profile(profile_key) profile = self.yaml_dict[self.key_profiles][profile_key] - if self.key_profile_dotfiles not in profile: + if self.key_profile_dotfiles not in profile or \ + profile[self.key_profile_dotfiles] is None: profile[self.key_profile_dotfiles] = [] pdfs = profile[self.key_profile_dotfiles] if self.key_all not in pdfs and \