From 111541a1e83c9dee835d2ba2f52ca14cfa003935 Mon Sep 17 00:00:00 2001 From: Jalin Date: Fri, 11 Jan 2019 12:22:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py12306/helpers/auth_code.py | 2 +- py12306/log/common_log.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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__()