Update index.py

This commit is contained in:
Mr Chen 2024-05-06 17:17:58 +08:00
parent dc59f24ce2
commit 08f75685fb
1 changed files with 6 additions and 1 deletions

View File

@ -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()