Commit d9bebf46 by Łukasz Mierzwa

don't fail on finders without storages attribute

parent 3e2cd9b8
......@@ -131,7 +131,12 @@ class BaseFinderStorage(PipelineStorage):
def listdir(self, path):
directories, files = [], []
for finder in self.finders.get_finders():
for storage in finder.storages.values():
try:
storages = finder.storages.values()
except AttributeError:
continue
else:
for storage in storages:
try:
new_directories, new_files = storage.listdir(path)
except OSError:
......
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