Update index.py
This commit is contained in:
parent
dc59f24ce2
commit
08f75685fb
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue