Fix the fetch remote question task for delete ones

This commit is contained in:
Thomas Sileo 2019-11-01 12:33:40 +01:00
parent 99bf6a4a01
commit f6ddb47fdf

View file

@ -538,7 +538,12 @@ def task_fetch_remote_question() -> _Response:
"activity.object.id": iri, "activity.object.id": iri,
} }
) )
try:
remote_question = ap.get_backend().fetch_iri(iri, no_cache=True) remote_question = ap.get_backend().fetch_iri(iri, no_cache=True)
except (ActivityGoneError, ActivityNotFoundError):
app.logger.info("f{iri} not found, no retry")
return ""
# FIXME(tsileo): compute and set `meta.object_visiblity` (also update utils.py to do it) # FIXME(tsileo): compute and set `meta.object_visiblity` (also update utils.py to do it)
if ( if (
local_question local_question