Skip to content

Commit

Permalink
Fix black formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Costanzo <[email protected]>
  • Loading branch information
ianco committed Mar 17, 2022
1 parent 780ae76 commit 6f8644e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions aries_cloudagent/protocols/didexchange/v1_0/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,15 +705,17 @@ async def accept_response(
async with self.profile.session() as session:
try:
conn_rec = await ConnRecord.retrieve_by_request_id(
session, response._thread_id,
session,
response._thread_id,
their_role=ConnRecord.Role.RESPONDER.rfc23,
)
except StorageNotFoundError:
pass
if not conn_rec:
try:
conn_rec = await ConnRecord.retrieve_by_request_id(
session, response._thread_id,
session,
response._thread_id,
their_role=ConnRecord.Role.RESPONDER.rfc160,
)
except StorageNotFoundError:
Expand Down Expand Up @@ -821,7 +823,8 @@ async def accept_complete(
async with self.profile.session() as session:
try:
conn_rec = await ConnRecord.retrieve_by_request_id(
session, complete._thread_id,
session,
complete._thread_id,
their_role=ConnRecord.Role.REQUESTER.rfc23,
)
except StorageNotFoundError:
Expand All @@ -830,7 +833,8 @@ async def accept_complete(
if not conn_rec:
try:
conn_rec = await ConnRecord.retrieve_by_request_id(
session, complete._thread_id,
session,
complete._thread_id,
their_role=ConnRecord.Role.REQUESTER.rfc160,
)
except StorageNotFoundError:
Expand Down

0 comments on commit 6f8644e

Please sign in to comment.