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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user