1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:19:46 +00:00

ensure profile dotfiles is not None

This commit is contained in:
deadc0de6
2020-01-29 14:09:50 +01:00
parent adc4581533
commit 873a22bab6

View File

@@ -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 \