-
-
Notifications
You must be signed in to change notification settings - Fork 734
Open
Labels
a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)Related to message filters: (antimalware, antispam, filtering, token_remover)p: 1 - highHigh PriorityHigh Prioritys: planningDiscussing detailsDiscussing detailst: bugSomething isn't workingSomething isn't working
Description
Sentry Issue: BOT-436
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf5 in position 14: invalid start byte
File "bot/exts/filtering/filtering.py", line 237, in on_message
await _extract_text_file_content(a)
File "bot/exts/filtering/filtering.py", line 73, in _extract_text_file_content
file_lines = file_content_bytes.decode(file_encoding).splitlines()
Unhandled exception in on_message.
It's not obvious to me what would be appropriate here. Block the file? Ignore unknown characters?
Metadata
Metadata
Assignees
Labels
a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)Related to message filters: (antimalware, antispam, filtering, token_remover)p: 1 - highHigh PriorityHigh Prioritys: planningDiscussing detailsDiscussing detailst: bugSomething isn't workingSomething isn't working