Only loop dir in custom

This commit is contained in:
Pascal Vizeli 2017-05-02 01:24:42 +02:00 committed by GitHub
parent 9e326f6324
commit 088cc3ef15

View File

@ -62,8 +62,9 @@ class AddonsData(Config):
self.config.path_addons_local, REPOSITORY_LOCAL) self.config.path_addons_local, REPOSITORY_LOCAL)
# read custom git repositories # read custom git repositories
for repository_dir in self.config.path_addons_git.glob("*/"): for repository_element in self.config.path_addons_git.iterdir():
self._read_git_repository(repository_dir) if repository_element.is_dir():
self._read_git_repository(repository_element)
def _read_git_repository(self, path): def _read_git_repository(self, path):
"""Process a custom repository folder.""" """Process a custom repository folder."""