From 1a2e7a1aae8d85c163a3363e081f73b9f90e03d7 Mon Sep 17 00:00:00 2001 From: "Colton Wolkins (Indicio work address)" Date: Tue, 21 May 2024 08:14:58 -0600 Subject: [PATCH] chore: balck Signed-off-by: Colton Wolkins (Indicio work address) --- aries_cloudagent/transport/pack_format.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/aries_cloudagent/transport/pack_format.py b/aries_cloudagent/transport/pack_format.py index 195119a998..afe09a4dfe 100644 --- a/aries_cloudagent/transport/pack_format.py +++ b/aries_cloudagent/transport/pack_format.py @@ -94,8 +94,10 @@ async def encode_message( ) -> Union[str, bytes]: """Pass an incoming message to the appropriately versioned PackWireFormat.""" - if session.profile.settings.get("experiment.didcomm_v2") and recipient_keys[0].startswith("did:peer:"): - #pack_format = self.get_for_packed_msg(message_json) + if session.profile.settings.get("experiment.didcomm_v2") and recipient_keys[ + 0 + ].startswith("did:peer:"): + # pack_format = self.get_for_packed_msg(message_json) pack_format = self.v2pack_format else: pack_format = self.v1pack_format @@ -349,8 +351,8 @@ async def parse_message( message_dict = message_unpack.message if message_unpack.sender_kid: - receipt.sender_verkey = message_unpack.sender_kid.split('#')[0] - receipt.recipient_verkey = message_unpack.recipient_kid.split('#')[0] + receipt.sender_verkey = message_unpack.sender_kid.split("#")[0] + receipt.recipient_verkey = message_unpack.recipient_kid.split("#")[0] pass thid = message_dict.get("thid")