From 0ed42981755ab0ddc275468d0919d9c10035bbb1 Mon Sep 17 00:00:00 2001 From: John Andersen Date: Sun, 22 Oct 2023 21:03:45 -0700 Subject: [PATCH] Format with black Signed-off-by: John Andersen --- scitt_emulator/federation_activitypub_bovine.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scitt_emulator/federation_activitypub_bovine.py b/scitt_emulator/federation_activitypub_bovine.py index 32813f23..958c1aae 100644 --- a/scitt_emulator/federation_activitypub_bovine.py +++ b/scitt_emulator/federation_activitypub_bovine.py @@ -172,7 +172,13 @@ async def federate_created_entries_pass_client( ): nonlocal client await federate_created_entries(client, sender, created_entry) - client.federate_created_entries = types.MethodType(signals.federation.created_entry.connect(federate_created_entries_pass_client), client) + + client.federate_created_entries = types.MethodType( + signals.federation.created_entry.connect( + federate_created_entries_pass_client + ), + client, + ) # print(signals.federation.created_entry.connect(federate_created_entries)) # Preform ActivityPub related init if following: @@ -231,7 +237,9 @@ async def federate_created_entries_pass_client( # Send signal to submit federated claim # TODO Announce that this entry ID was created via # federation to avoid an infinate loop - await signals.federation.submit_claim.send_async(client, claim=claim) + await signals.federation.submit_claim.send_async( + client, claim=claim + ) except Exception as ex: logger.error(ex) logger.exception(ex)