Update index.py

This commit is contained in:
Mr Chen
2024-05-06 17:17:36 +08:00
parent 869843da82
commit dc59f24ce2
+5 -1
View File
@@ -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 = {}