diff --git a/fbchat/_client.py b/fbchat/_client.py index 59bad02..69358bd 100644 --- a/fbchat/_client.py +++ b/fbchat/_client.py @@ -828,6 +828,9 @@ class Client(object): ) result = j["payload"]["search_snippets"][query] + if not result: + return {} + if fetch_messages: search_method = self.searchForMessages else: