We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4541bf8 commit 8b72e05Copy full SHA for 8b72e05
sogs/filtration.py
@@ -7,7 +7,7 @@ def should_drop_message_with_body(body):
7
body = message_body(body)
8
"""return true if we should drop a message given its body"""
9
if os.path.exists(config.BAD_WORDS_FILE):
10
- with open(config.BAD_WORDS_FILE, 'r') as f:
+ with open(config.BAD_WORDS_FILE, 'rb') as f:
11
for line in f:
12
word = line.rstrip()
13
if word in body:
0 commit comments