1
0
Fork 0

Fixes celery error encountering Article type activities

This commit is contained in:
Mouse Reeve 2022-05-16 10:11:45 -07:00
parent 17864da8a2
commit fd43b56d31
2 changed files with 31 additions and 3 deletions

View file

@ -43,7 +43,7 @@ def naive_parse(activity_objects, activity_json, serializer=None):
serializer = activity_objects[activity_type]
except KeyError as err:
# we know this exists and that we can't handle it
if activity_type in ["Question"]:
if activity_type in ["Question", "Article"]:
return None
raise ActivitySerializerError(err)