Commit 2c16ca16 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Vincent A

repositories: Ignore empty directories

parent 8e724e16
......@@ -290,7 +290,7 @@ class Repository(object):
for name in sorted(os.listdir(path)):
module_path = os.path.join(path, name)
if not os.path.isdir(module_path) or '.' in name or name == self.KEYDIR:
if not os.path.isdir(module_path) or '.' in name or name == self.KEYDIR or not os.path.exists(os.path.join(module_path, '__init__.py')):
continue
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment