mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
Improves error reporting on activitypub parser
This commit is contained in:
parent
f2b0b306e9
commit
819458e82a
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class ActivityObject:
|
|||
try:
|
||||
value = kwargs[field.name]
|
||||
if value in (None, MISSING, {}):
|
||||
raise KeyError()
|
||||
raise KeyError("Missing required field", field.name)
|
||||
try:
|
||||
is_subclass = issubclass(field.type, ActivityObject)
|
||||
except TypeError:
|
||||
|
|
Loading…
Reference in a new issue