diff --git a/py12306/helpers/auth_code.py b/py12306/helpers/auth_code.py index 2f4caff..b4d5e41 100644 --- a/py12306/helpers/auth_code.py +++ b/py12306/helpers/auth_code.py @@ -52,7 +52,7 @@ class AuthCode: result = response.json() if result.get('image'): return result.get('image') - raise SSLError + raise SSLError('返回数据为空') except SSLError as e: UserLog.add_quick_log( UserLog.MESSAGE_DOWNLAOD_AUTH_CODE_FAIL.format(e, self.retry_time)).flush() diff --git a/py12306/log/common_log.py b/py12306/log/common_log.py index f0fa2d1..2d5e5a8 100644 --- a/py12306/log/common_log.py +++ b/py12306/log/common_log.py @@ -23,7 +23,7 @@ class CommonLog(BaseLog): MESSAGE_TEST_SEND_VOICE_CODE = '正在测试发送语音验证码...' - MESSAGE_CONFIG_FILE_DID_CHANGED = '配置文件已修改,正在重新加载中' + MESSAGE_CONFIG_FILE_DID_CHANGED = '配置文件已修改,正在重新加载中\n' def __init__(self): super().__init__()