Also capture unknown message types

pull/605/head
Andrew Godwin 2023-07-07 16:33:55 -06:00
rodzic 4458594f04
commit 2fda9ad2b4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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