mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user