Skip to content

Commit

Permalink
Ignore line length in error msg
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Jul 18, 2024
1 parent e5dd9d8 commit 3133787
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions aries_cloudagent/revocation/indy.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,7 @@ async def get_or_create_active_registry(
triggered and the caller should retry after a delay.
"""
try:
active_rev_reg_rec = await self.get_active_issuer_rev_reg_record(
cred_def_id
)
active_rev_reg_rec = await self.get_active_issuer_rev_reg_record(cred_def_id)
rev_reg = active_rev_reg_rec.get_registry()
await rev_reg.get_or_fetch_local_tails_path()
return active_rev_reg_rec, rev_reg
Expand All @@ -254,14 +252,12 @@ async def get_or_create_active_registry(
# all registries are full, create a new one
if not full_registries:
# Use any registry to get max cred num
any_registry = (
await IssuerRevRegRecord.query_by_cred_def_id(
session, cred_def_id, limit=1
)
any_registry = await IssuerRevRegRecord.query_by_cred_def_id(
session, cred_def_id, limit=1
)
if not any_registry:
raise RevocationError(
f"No revocation registry record found in issuer wallet for cred def id {cred_def_id}"
f"No revocation registry record found in issuer wallet for cred def id {cred_def_id}" # noqa: E501
)
any_registry = any_registry[0]
await self.init_issuer_registry(
Expand Down

0 comments on commit 3133787

Please sign in to comment.