diff --git a/plugins/generic/search.py b/plugins/generic/search.py index ece3f8e05..fd2f221e1 100644 --- a/plugins/generic/search.py +++ b/plugins/generic/search.py @@ -318,6 +318,10 @@ class Search: foundTbl = safeSQLIdentificatorNaming(foundTbl, True) foundTbls[db].append(foundTbl) + for db in foundTbls.keys(): + if not foundTbls[db]: + del foundTbls[db] + if not foundTbls: warnMsg = "no databases contain any of the provided tables" logger.warn(warnMsg)