diff --git a/channel/wechat/wechat_mp_channel.py b/channel/wechat/wechat_mp_channel.py index 4092211..6a05223 100644 --- a/channel/wechat/wechat_mp_channel.py +++ b/channel/wechat/wechat_mp_channel.py @@ -19,7 +19,7 @@ def hello_world(msg): sensitive_words = [line.strip() for line in f.readlines()] found = False for word in sensitive_words: - if word in msg.content: + if word != '' and word in msg.content: found = True break if found: diff --git a/sensitive_words.txt b/sensitive_words.txt index 8b13789..e69de29 100644 --- a/sensitive_words.txt +++ b/sensitive_words.txt @@ -1 +0,0 @@ -