Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_fetch: Remove obsolete UnicodeDecodeError handler.

Anders Kaseorga9b12ae067a5
diff --git a/zerver/views/message_fetch.py b/zerver/views/message_fetch.py
index 08e64cecd29..ec9e7466c54 100644
--- a/zerver/views/message_fetch.py
+++ b/zerver/views/message_fetch.py
@@ -1139,16 +1139,9 @@ def get_messages_backend(
for row in rows:
message_id = row[0]
(topic_name, rendered_content, content_matches, topic_matches) = row[-4:]
-
- try:
- search_fields[message_id] = get_search_fields(
- rendered_content, topic_name, content_matches, topic_matches
- )
- except UnicodeDecodeError as err: # nocoverage
- # No coverage for this block since it should be
- # impossible, and we plan to remove it once we've
- # debugged the case that makes it happen.
- raise Exception(str(err), message_id, narrow)
+ search_fields[message_id] = get_search_fields(
+ rendered_content, topic_name, content_matches, topic_matches
+ )
message_list = messages_for_ids(
message_ids=message_ids,