From 2fda9ad2b4d6700d0b5b42e0e43f4bb4c2febaf8 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 7 Jul 2023 16:33:55 -0600 Subject: [PATCH] Also capture unknown message types --- users/models/inbox_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models/inbox_message.py b/users/models/inbox_message.py index 155484a..d8b6e61 100644 --- a/users/models/inbox_message.py +++ b/users/models/inbox_message.py @@ -154,7 +154,7 @@ class InboxMessageStates(StateGraph): f"Cannot handle activity of type __internal__.{unknown}" ) case unknown: - raise ValueError(f"Cannot handle activity of type {unknown}") + return cls.errored return cls.processed except (ActivityPubError, JsonLdError): return cls.errored