mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
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):
|
||||
Tasks.cache_actor(iri)
|
||||
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:
|
||||
app.logger.exception(f"failed to process new activity {iri}")
|
||||
abort(500)
|
||||
|
|
Loading…
Reference in a new issue