👐 防止无脑更新无法启动程序

This commit is contained in:
xtaodada 2020-08-08 21:28:59 +08:00
parent 1dca3cdd9f
commit 8e792b9b8f
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736

View File

@ -61,11 +61,18 @@ if not exists(f"{getcwd()}/data"):
api_key = config['api_key']
api_hash = config['api_hash']
proxy_addr = config['proxy_addr'].strip()
proxy_port = config['proxy_port'].strip()
mtp_addr = config['mtp_addr'].strip()
mtp_port = config['mtp_port'].strip()
mtp_secret = config['mtp_secret'].strip()
try:
proxy_addr = config['proxy_addr'].strip()
proxy_port = config['proxy_port'].strip()
mtp_addr = config['mtp_addr'].strip()
mtp_port = config['mtp_port'].strip()
mtp_secret = config['mtp_secret'].strip()
except:
proxy_addr = ''
proxy_port = ''
mtp_addr = ''
mtp_port = ''
mtp_secret = ''
try:
redis_host = config['redis']['host']
except KeyError: