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:
parent
11c8cc92f3
commit
ee1fabf600
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user