forked from mirrors/bookwyrm
better checking for empty values
This commit is contained in:
parent
91908eb1b6
commit
e2f921b7f5
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ class ActivityObject:
|
|||
for field in fields(self):
|
||||
try:
|
||||
value = kwargs[field.name]
|
||||
if value in (None, MISSING):
|
||||
raise KeyError()
|
||||
try:
|
||||
is_subclass = issubclass(field.type, ActivityObject)
|
||||
except TypeError:
|
||||
|
|
Loading…
Reference in a new issue