@@ -312,7 +312,7 @@ async def _submit(
312
312
taa_accept : Optional [bool ] = None ,
313
313
sign_did : DIDInfo = sentinel ,
314
314
write_ledger : bool = True ,
315
- profile : Optional [Profile ] = None , # <-- ADD profile parameter
315
+ profile : Optional [Profile ] = None ,
316
316
) -> dict :
317
317
"""Sign and submit request to ledger.
318
318
@@ -1170,7 +1170,6 @@ async def send_revoc_reg_def(
1170
1170
did_info = await wallet .get_local_did (issuer_did )
1171
1171
else :
1172
1172
did_info = await wallet .get_public_did ()
1173
- del wallet
1174
1173
if not did_info :
1175
1174
raise LedgerTransactionError (
1176
1175
"No issuer DID found for revocation registry definition"
@@ -1262,13 +1261,9 @@ async def send_revoc_reg_entry(
1262
1261
1263
1262
wallet_type = current_profile .context .settings .get ("wallet.type" )
1264
1263
if wallet_type == "askar-anoncreds" :
1265
- try :
1266
- from acapy_agent .anoncreds .default .legacy_indy .registry import (
1267
- LegacyIndyRegistry ,
1268
- )
1269
-
1270
- except ImportError :
1271
- raise
1264
+ from acapy_agent .anoncreds .default .legacy_indy .registry import (
1265
+ LegacyIndyRegistry ,
1266
+ )
1272
1267
1273
1268
revoc_reg_entry_req = await self ._create_revoc_reg_entry_request (
1274
1269
did_info ,
@@ -1283,17 +1278,14 @@ async def send_revoc_reg_entry(
1283
1278
revoc_reg_entry_req .set_endorser (endorser_did )
1284
1279
1285
1280
legacy_indy_registry = LegacyIndyRegistry ()
1286
- try :
1287
- resp = await legacy_indy_registry .txn_submit (
1288
- self ,
1289
- revoc_reg_entry_req ,
1290
- sign = True ,
1291
- sign_did = did_info ,
1292
- write_ledger = write_ledger ,
1293
- profile = current_profile ,
1294
- )
1295
- except Exception :
1296
- raise
1281
+ resp = await legacy_indy_registry .txn_submit (
1282
+ self ,
1283
+ revoc_reg_entry_req ,
1284
+ sign = True ,
1285
+ sign_did = did_info ,
1286
+ write_ledger = write_ledger ,
1287
+ profile = current_profile ,
1288
+ )
1297
1289
1298
1290
if not write_ledger :
1299
1291
return revoc_reg_id , {"signed_txn" : resp }
0 commit comments