Allow --database to work without installed bsddb3/sqlite3

This commit is contained in:
Douglas Blank 2016-05-01 07:38:31 -04:00
parent 3c9cbb25b0
commit 9d5322103e

View File

@ -329,6 +329,7 @@ class ArgParser(object):
for plugin in pmgr.get_reg_databases():
pdata = pmgr.get_plugin(plugin.id)
mod = pmgr.load_plugin(pdata)
if mod:
database = getattr(mod, pdata.databaseclass)
summary = database.get_class_summary()
print("Database backend ID:", pdata.id, "(default)" if pdata.id == default else "")