From 142e5786dd969c539cfa9405e7086428e0483adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Sun, 26 Nov 2023 16:09:11 +0100 Subject: [PATCH] formatting --- boltz_client/onchain.py | 1 - boltz_client/onchain_wally.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/boltz_client/onchain.py b/boltz_client/onchain.py index be163d1..be6dabd 100644 --- a/boltz_client/onchain.py +++ b/boltz_client/onchain.py @@ -9,7 +9,6 @@ from embit.liquid.networks import NETWORKS as LNETWORKS from embit.liquid.transaction import LTransaction from embit.networks import NETWORKS - from embit.transaction import SIGHASH, Transaction, TransactionInput, TransactionOutput from .mempool import LockupData diff --git a/boltz_client/onchain_wally.py b/boltz_client/onchain_wally.py index 86da4c3..b95fb51 100644 --- a/boltz_client/onchain_wally.py +++ b/boltz_client/onchain_wally.py @@ -66,8 +66,8 @@ def create_liquid_tx( assert blinding_key, "blinding_key is required" try: blinding_key_bytes = bytes.fromhex(blinding_key) - except ValueError: - raise ValueError("blinding_key must be hex encoded") + except ValueError as exc: + raise ValueError("blinding_key must be hex encoded") from exc receive_blinding_pubkey = wally.confidential_addr_segwit_to_ec_public_key( receive_address, confidential_addr_family