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:
@@ -482,7 +482,11 @@ def runDocInfo():
|
||||
def runReplInfo():
|
||||
client = mongdbClient()
|
||||
db = client.admin
|
||||
serverStatus = db.command('serverStatus')
|
||||
|
||||
try:
|
||||
serverStatus = db.command('serverStatus')
|
||||
except Exception as e:
|
||||
return mw.returnJson(False, str(e))
|
||||
|
||||
d = getConfigData()
|
||||
result = {}
|
||||
|
||||
Reference in New Issue
Block a user