Skip to content

Commit

Permalink
Update format code
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Dec 16, 2021
1 parent 9a60d3b commit 33547ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
11 changes: 3 additions & 8 deletions aries_cloudagent/protocols/issue_credential/v1_0/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,13 +904,10 @@ async def receive_credential_ack(
return cred_ex_record

async def revoke_credentials(
self,
session: ProfileSession,
rev_reg_id: str,
cred_rev_ids: Sequence[str]
self, session: ProfileSession, rev_reg_id: str, cred_rev_ids: Sequence[str]
) -> None:
"""
Update credentials state to credential_revoked
Update credentials state to credential_revoked.
Args:
rev_reg_id: revocation registry ID
Expand All @@ -924,9 +921,7 @@ async def revoke_credentials(
try:
cred_ex_record = await (
V10CredentialExchange.retrieve_by_revocation(
session,
revoc_reg_id=rev_reg_id,
revocation_id=cred_rev_id
session, revoc_reg_id=rev_reg_id, revocation_id=cred_rev_id
)
)
cred_ex_record.state = V10CredentialExchange.STATE_CREDENTIAL_REVOKED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Meta:
TAG_NAMES = {
"~thread_id" if UNENCRYPTED_TAGS else "thread_id",
"revoc_reg_id",
"revocation_id"
"revocation_id",
}

INITIATOR_SELF = "self"
Expand Down Expand Up @@ -284,7 +284,7 @@ async def retrieve_by_connection_and_thread(
async def retrieve_by_revocation(
cls, session: ProfileSession, revoc_reg_id: str, revocation_id: str
) -> "V10CredentialExchange":
"""Retrieve a credential exchange record by revocation registry ID and credential revocation ID."""
"""Retrieve a credential record by revocation registry and revocation ID."""
record = await cls.retrieve_by_tag_filter(
session,
{"revoc_reg_id": revoc_reg_id},
Expand Down
1 change: 1 addition & 0 deletions aries_cloudagent/revocation/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
CredentialManager as V10CredManager,
)


class RevocationManagerError(BaseError):
"""Revocation manager error."""

Expand Down

0 comments on commit 33547ad

Please sign in to comment.