👐 防止无脑更新无法启动程序
This commit is contained in:
parent
1dca3cdd9f
commit
8e792b9b8f
@ -61,11 +61,18 @@ if not exists(f"{getcwd()}/data"):
|
|||||||
|
|
||||||
api_key = config['api_key']
|
api_key = config['api_key']
|
||||||
api_hash = config['api_hash']
|
api_hash = config['api_hash']
|
||||||
|
try:
|
||||||
proxy_addr = config['proxy_addr'].strip()
|
proxy_addr = config['proxy_addr'].strip()
|
||||||
proxy_port = config['proxy_port'].strip()
|
proxy_port = config['proxy_port'].strip()
|
||||||
mtp_addr = config['mtp_addr'].strip()
|
mtp_addr = config['mtp_addr'].strip()
|
||||||
mtp_port = config['mtp_port'].strip()
|
mtp_port = config['mtp_port'].strip()
|
||||||
mtp_secret = config['mtp_secret'].strip()
|
mtp_secret = config['mtp_secret'].strip()
|
||||||
|
except:
|
||||||
|
proxy_addr = ''
|
||||||
|
proxy_port = ''
|
||||||
|
mtp_addr = ''
|
||||||
|
mtp_port = ''
|
||||||
|
mtp_secret = ''
|
||||||
try:
|
try:
|
||||||
redis_host = config['redis']['host']
|
redis_host = config['redis']['host']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user