forked from forks/microblog.pub
Fix task
This commit is contained in:
parent
7d2e3dd337
commit
63ebf6ecf2
1 changed files with 2 additions and 1 deletions
3
app.py
3
app.py
|
@ -2716,7 +2716,8 @@ def task_process_new_activity():
|
||||||
if not should_delete and not activity.has_type(ap.ActivityType.DELETE):
|
if not should_delete and not activity.has_type(ap.ActivityType.DELETE):
|
||||||
Tasks.cache_actor(iri)
|
Tasks.cache_actor(iri)
|
||||||
except (ActivityGoneError, ActivityNotFoundError):
|
except (ActivityGoneError, ActivityNotFoundError):
|
||||||
app.logger.log.exception(f"dropping activity {iri}, skip processing")
|
app.logger.exception(f"dropping activity {iri}, skip processing")
|
||||||
|
return ""
|
||||||
except Exception:
|
except Exception:
|
||||||
app.logger.exception(f"failed to process new activity {iri}")
|
app.logger.exception(f"failed to process new activity {iri}")
|
||||||
abort(500)
|
abort(500)
|
||||||
|
|
Loading…
Reference in a new issue