Don't fail readDB on empty dirs.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-13 21:00:13 +00:00
1 parent 52ae2445d4
commit 1adef4288b
1 file changed
+5 -3
+5 -3
View File
@@ -485,9 +485,11 @@ class DBMap(dict):
if self.__db__ is None:
return
self.__data__ = self.__db__.getData()
for k in self.__db__.ls():
n = self.addChild(k)
n.readDB()
l = self.__db__.ls()
if l:
for k in l:
n = self.addChild(k)
n.readDB()
self.__dirty__ = False
def readChildDB(self, k):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.