1
0
Fork 0

Merge pull request #2035 from bookwyrm-social/stopped-shelf

Stopped shelf
This commit is contained in:
Mouse Reeve 2022-05-26 10:11:32 -07:00 committed by GitHub
commit 88b2cffcf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 197 additions and 8 deletions

View file

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