Skip to content

Commit 3ae25a7

Browse files
author
Yuki I
committed
refactor: remove try-except block because it isn't necessary
Signed-off-by: Yuki I <[email protected]>
1 parent e7f82a8 commit 3ae25a7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

acapy_agent/ledger/indy_vdr.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,12 +1247,7 @@ async def send_revoc_reg_entry(
12471247
current_profile = profile or self.profile
12481248
async with current_profile.session() as session:
12491249
wallet = session.inject(BaseWallet)
1250-
try:
1251-
did_info = await wallet.get_public_did()
1252-
except Exception:
1253-
raise
1254-
finally:
1255-
del wallet
1250+
did_info = await wallet.get_public_did()
12561251

12571252
if not did_info:
12581253
raise LedgerTransactionError(

0 commit comments

Comments
 (0)