Fixes failed serialization of empty avatar field

This commit is contained in:
Mouse Reeve 2021-03-17 09:22:45 -07:00
parent d50689e63f
commit db426d71ee

View file

@ -75,7 +75,7 @@ class ActivityObject:
for field in fields(self):
try:
value = kwargs[field.name]
if value in (None, MISSING):
if value in (None, MISSING, {}):
raise KeyError()
try:
is_subclass = issubclass(field.type, ActivityObject)