Author: justi9
Date: 2010-05-10 15:53:29 -0400 (Mon, 10 May 2010)
New Revision: 3957
Modified:
mgmt/newdata/wooly/python/wooly/resources.py
Log:
Don't explode if a resource dir is missing
Modified: mgmt/newdata/wooly/python/wooly/resources.py
===================================================================
--- mgmt/newdata/wooly/python/wooly/resources.py 2010-05-10 19:09:10 UTC (rev 3956)
+++ mgmt/newdata/wooly/python/wooly/resources.py 2010-05-10 19:53:29 UTC (rev 3957)
@@ -56,6 +56,9 @@
self.whitelists = dict() # dir => (name1, name2, ...)
def add_dir(self, dir):
+ if not os.path.isdir(dir):
+ return
+
self.dirs.append(dir)
self.whitelists[dir] = set(os.listdir(dir))
Show replies by date