mirror of
https://github.com/Yanyutin753/RefreshToV1Api.git
synced 2025-10-16 08:10:21 +00:00
[fix] 优化获取Arkose失败的时候的异常处理
This commit is contained in:
5
main.py
5
main.py
@@ -180,9 +180,9 @@ CORS(app, resources={r"/images/*": {"origins": "*"}})
|
|||||||
PANDORA_UPLOAD_URL = 'files.pandoranext.com'
|
PANDORA_UPLOAD_URL = 'files.pandoranext.com'
|
||||||
|
|
||||||
|
|
||||||
VERSION = '0.4.1'
|
VERSION = '0.4.2'
|
||||||
# VERSION = 'test'
|
# VERSION = 'test'
|
||||||
UPDATE_INFO = '支持自定义Arkose Token获取url列表'
|
UPDATE_INFO = '优化未获取到Arkose的时候的异常处理'
|
||||||
# UPDATE_INFO = '【仅供临时测试使用】 '
|
# UPDATE_INFO = '【仅供临时测试使用】 '
|
||||||
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
@@ -331,6 +331,7 @@ def get_token():
|
|||||||
except requests.RequestException as e:
|
except requests.RequestException as e:
|
||||||
logger.error(f"请求异常: {e}")
|
logger.error(f"请求异常: {e}")
|
||||||
|
|
||||||
|
raise Exception("获取 arkose token 失败")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
Reference in New Issue
Block a user