From a4e6033a0b9440a801dc6f159bf3dc6d4126c5c2 Mon Sep 17 00:00:00 2001 From: Christof Dorner Date: Thu, 4 May 2023 22:56:50 +0000 Subject: [PATCH] Ignore unknown create/update types (#569) --- users/models/inbox_message.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/users/models/inbox_message.py b/users/models/inbox_message.py index 717d311..aa01e0a 100644 --- a/users/models/inbox_message.py +++ b/users/models/inbox_message.py @@ -42,10 +42,6 @@ class InboxMessageStates(StateGraph): case unknown: if unknown in Post.Types.names: await sync_to_async(Post.handle_create_ap)(instance.message) - else: - raise ValueError( - f"Cannot handle activity of type create.{unknown}" - ) case "update": match instance.message_object_type: case "note": @@ -65,10 +61,6 @@ class InboxMessageStates(StateGraph): case unknown: if unknown in Post.Types.names: await sync_to_async(Post.handle_update_ap)(instance.message) - else: - raise ValueError( - f"Cannot handle activity of type update.{unknown}" - ) case "accept": match instance.message_object_type: case "follow":