1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

config fix: check for existance of root 'collections dir', #55

This commit is contained in:
Ilya Kreymer 2015-02-25 13:49:39 -08:00
parent 11c8cc92f3
commit ee1fabf600

View File

@ -134,8 +134,8 @@ class DirectoryCollsLoader(object):
def __call__(self):
colls = {}
root_dir = self.config.get('collections_root')
if not root_dir:
root_dir = self.config.get('collections_root', '')
if not root_dir or not os.path.isdir(root_dir):
return colls
for name in os.listdir(root_dir):