Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Format with black
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Oct 23, 2023
1 parent 317c4a0 commit 0ed4298
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scitt_emulator/federation_activitypub_bovine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0ed4298

Please sign in to comment.