diff --git a/CB/Core.py b/CB/Core.py index 8e06082..71cee3c 100644 --- a/CB/Core.py +++ b/CB/Core.py @@ -542,7 +542,8 @@ def detect_addons(self): partial_hit_raw = [] miss = [] for directory in addon_dirs: - if not os.path.isdir(self.path / directory / '.git') and not os.path.islink(self.path / directory): + if os.path.isdir(self.path / directory) and not os.path.islink(self.path / directory) and \ + not os.path.isdir(self.path / directory / '.git'): if directory in self.cfDirs: if len(self.cfDirs[directory]) > 1: partial_hit_raw.append(self.cfDirs[directory])