mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-10 17:31:03 +00:00
Also capture unknown message types
This commit is contained in:
parent
4458594f04
commit
2fda9ad2b4
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class InboxMessageStates(StateGraph):
|
||||||
f"Cannot handle activity of type __internal__.{unknown}"
|
f"Cannot handle activity of type __internal__.{unknown}"
|
||||||
)
|
)
|
||||||
case unknown:
|
case unknown:
|
||||||
raise ValueError(f"Cannot handle activity of type {unknown}")
|
return cls.errored
|
||||||
return cls.processed
|
return cls.processed
|
||||||
except (ActivityPubError, JsonLdError):
|
except (ActivityPubError, JsonLdError):
|
||||||
return cls.errored
|
return cls.errored
|
||||||
|
|
Loading…
Reference in a new issue