Skip to content

Commit

Permalink
修复一些日志报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Maicius committed Aug 31, 2020
1 parent a91e43a commit 98d1371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spider/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
# 说说中的关键字,这个比较花时间
Expand Down

0 comments on commit 98d1371

Please sign in to comment.