Skip to content

Commit 4fe920d

Browse files
committed
specific exception
1 parent 3aec38e commit 4fe920d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chia/wallet/wallet_rpc_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
from chia.wallet.vc_wallet.vc_wallet import VCWallet
101101
from chia.wallet.wallet import Wallet
102102
from chia.wallet.wallet_action_scope import WalletActionScope
103-
from chia.wallet.wallet_coin_record import WalletCoinRecord
103+
from chia.wallet.wallet_coin_record import WalletCoinRecord, WalletCoinRecordMetadataParsingError
104104
from chia.wallet.wallet_coin_store import CoinRecordOrder, GetCoinRecords, unspent_range
105105
from chia.wallet.wallet_info import WalletInfo
106106
from chia.wallet.wallet_node import WalletNode, get_wallet_db_path
@@ -1577,7 +1577,7 @@ async def spend_clawback_coins(
15771577
coin_batch = {
15781578
coin_record.coin: coin_record.parsed_metadata() for coin_record in records_list[i : i + batch_size]
15791579
}
1580-
except ValueError as e:
1580+
except WalletCoinRecordMetadataParsingError as e:
15811581
log.error("Failed to spend clawback coin: %s", e)
15821582
continue
15831583
await self.service.wallet_state_manager.spend_clawback_coins(

0 commit comments

Comments
 (0)