版本 2.01:fix bug
This commit is contained in:
parent
9040dd3065
commit
45505af55b
4
Utils.py
4
Utils.py
|
|
@ -270,8 +270,8 @@ def get_tenant_code(school_name: str) -> str:
|
||||||
|
|
||||||
def set_accounts():
|
def set_accounts():
|
||||||
global DEFAULT_SCHOOL_NAME
|
global DEFAULT_SCHOOL_NAME
|
||||||
with open("config.json", "r+", encoding='utf8') as file:
|
try:
|
||||||
try:config = json.load(file)
|
with open("config.json", "r+", encoding='utf8') as file:config = json.load(file)
|
||||||
except:
|
except:
|
||||||
config = {}
|
config = {}
|
||||||
config['TrueCaptcha'] = None
|
config['TrueCaptcha'] = None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue