Couple of drei updates

This commit is contained in:
Miroslav Stampar
2019-05-15 10:30:47 +02:00
parent c3f15ef309
commit cc9711ef5b
6 changed files with 12 additions and 12 deletions

View File

@@ -93,9 +93,9 @@ class Entries:
self.getTables()
if len(kb.data.cachedTables) > 0:
tblList = list(kb.data.cachedTables.values())
tblList = list(six.itervalues(kb.data.cachedTables))
if isListLike(tblList[0]):
if tblList and isListLike(tblList[0]):
tblList = tblList[0]
elif not conf.search:
errMsg = "unable to retrieve the tables "