electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit cc5624fb201f07755e0b27932af443f86fbb390d
parent 2409782975d15213804aa80614a322262cd32084
Author: SomberNight <somber.night@protonmail.com>
Date:   Sun, 23 Feb 2020 19:55:09 +0100

don't raise BaseException

Diffstat:
Melectrum/lnworker.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/electrum/lnworker.py b/electrum/lnworker.py @@ -808,7 +808,7 @@ class LNWallet(LNWorker): funding_sat: int, push_amt_sat: int, password: str = None, timeout: Optional[int] = 20) -> Tuple[Channel, PartialTransaction]: if self.wallet.is_lightning_backup(): - raise BaseException(_('Cannot create channel: this is a backup file')) + raise Exception(_('Cannot create channel: this is a backup file')) if funding_sat > LN_MAX_FUNDING_SAT: raise Exception(_("Requested channel capacity is over protocol allowed maximum.")) coro = self._open_channel_coroutine(connect_str=connect_str, funding_tx=funding_tx, funding_sat=funding_sat,