From 98d1371c09a5cf1edaa84a524f5ebcb2e931eff6 Mon Sep 17 00:00:00 2001 From: Maicius Date: Mon, 31 Aug 2020 21:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9B=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/spider/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spider/main.py b/src/spider/main.py index e32c14e..9d39126 100644 --- a/src/spider/main.py +++ b/src/spider/main.py @@ -91,7 +91,8 @@ def web_interface(username, nickname, stop_time, mood_num, cookie_text, no_delet sp.user_info.save_user() except BaseException as e: sp.logging_info("failed to analysis") - sp.logging.error(e) + sp.format_error(e, "failed to analysis because: ") + sp.logging.exception(e) sp.logging_info("finish to analysis") sp.re.set(CLEAN_DATA_KEY + username, 1) now_user = sp.re.get(FINISH_USER_NUM_KEY) @@ -144,7 +145,6 @@ def do_analysis_for_all(sp): except BaseException as e: sp.logging_info("failed to calculate early time") sp.format_error(e) - sp.logging.exception(e) # sp.draw_cmt_cloud(sp.mood_data_df) # sp.draw_like_cloud(sp.mood_data_df) # 说说中的关键字,这个比较花时间