Browse Source

don't raise BaseException

hard-fail-on-bad-server-string
SomberNight 5 years ago
parent
commit
cc5624fb20
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/lnworker.py

2
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,

Loading…
Cancel
Save