diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 4bd4c6b58..f16851303 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -432,7 +432,12 @@ def runInfo(): ''' client = mongdbClient() db = client.admin - serverStatus = db.command('serverStatus') + + try: + serverStatus = db.command('serverStatus') + except Exception as e: + return mw.returnJson(False, str(e)) + listDbs = client.list_database_names()