From 899cac6fb3bf5baac2e0523586e02c0641c2096f Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 15 Aug 2019 17:09:53 +0200 Subject: [PATCH] Fix formatting --- blueprints/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blueprints/tasks.py b/blueprints/tasks.py index 1354d73..7b3447d 100644 --- a/blueprints/tasks.py +++ b/blueprints/tasks.py @@ -310,7 +310,9 @@ def task_cache_actor() -> _Response: if not activity.has_type([ap.ActivityType.CREATE, ap.ActivityType.ANNOUNCE]): return "" - if activity.get_object()._data.get("attachment", []) or activity.get_object().has_type(ap.ActivityType.VIDEO): + if activity.get_object()._data.get( + "attachment", [] + ) or activity.get_object().has_type(ap.ActivityType.VIDEO): Tasks.cache_attachments(iri) except (ActivityGoneError, ActivityNotFoundError):