File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -1230,11 +1230,22 @@ async def send_revoc_reg_entry(
1230
1230
"""Publish a revocation registry entry to the ledger."""
1231
1231
async with self .profile .session () as session :
1232
1232
wallet = session .inject (BaseWallet )
1233
- if issuer_did :
1234
- did_info = await wallet .get_local_did (issuer_did )
1233
+ did_info = None
1234
+
1235
+ try :
1236
+ if issuer_did :
1237
+ did_info = await wallet .get_local_did (issuer_did )
1238
+ except WalletNotFoundError :
1239
+ LOGGER .exception ("No issuer DID found for revocation registry entry" )
1240
+
1241
+ if not did_info :
1242
+ try :
1243
+ did_info = await wallet .get_public_did ()
1244
+ except WalletNotFoundError :
1245
+ LOGGER .exception ("No public DID found for revocation registry entry" )
1235
1246
else :
1236
- did_info = await wallet . get_public_did ()
1237
- del wallet
1247
+ del wallet
1248
+
1238
1249
if not did_info :
1239
1250
raise LedgerTransactionError (
1240
1251
"No issuer DID found for revocation registry entry"
You can’t perform that action at this time.
0 commit comments