Update index.py

This commit is contained in:
midoks 2022-07-14 16:21:14 +08:00
parent 6f5900c0d0
commit 8bb46df983
1 changed files with 4 additions and 1 deletions

View File

@ -216,8 +216,11 @@ def getRootPath():
def getDbConfValue():
content = mw.readFile(getConf())
conf = getConf()
if not os.path.exists(conf):
return {}
content = mw.readFile(conf)
rep_scope = "\[database\](.*?)\["
tmp = re.findall(rep_scope, content, re.S)