Minor cosmetic fix

This commit is contained in:
Miroslav Stampar 2013-02-05 11:18:46 +01:00
parent 7ba0da66b1
commit 87ad96bf01

View File

@ -318,6 +318,10 @@ class Search:
foundTbl = safeSQLIdentificatorNaming(foundTbl, True) foundTbl = safeSQLIdentificatorNaming(foundTbl, True)
foundTbls[db].append(foundTbl) foundTbls[db].append(foundTbl)
for db in foundTbls.keys():
if not foundTbls[db]:
del foundTbls[db]
if not foundTbls: if not foundTbls:
warnMsg = "no databases contain any of the provided tables" warnMsg = "no databases contain any of the provided tables"
logger.warn(warnMsg) logger.warn(warnMsg)