From ee1fabf600c20e8f339cc9e0a1da299947317533 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Wed, 25 Feb 2015 13:49:39 -0800 Subject: [PATCH] config fix: check for existance of root 'collections dir', #55 --- pywb/webapp/pywb_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pywb/webapp/pywb_init.py b/pywb/webapp/pywb_init.py index 2cafe376..1b48eb44 100644 --- a/pywb/webapp/pywb_init.py +++ b/pywb/webapp/pywb_init.py @@ -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):