mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
don't raise BaseException
This commit is contained in:
parent
2409782975
commit
cc5624fb20
1 changed files with 1 additions and 1 deletions
|
@ -808,7 +808,7 @@ class LNWallet(LNWorker):
|
||||||
funding_sat: int, push_amt_sat: int, password: str = None,
|
funding_sat: int, push_amt_sat: int, password: str = None,
|
||||||
timeout: Optional[int] = 20) -> Tuple[Channel, PartialTransaction]:
|
timeout: Optional[int] = 20) -> Tuple[Channel, PartialTransaction]:
|
||||||
if self.wallet.is_lightning_backup():
|
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:
|
if funding_sat > LN_MAX_FUNDING_SAT:
|
||||||
raise Exception(_("Requested channel capacity is over protocol allowed maximum."))
|
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,
|
coro = self._open_channel_coroutine(connect_str=connect_str, funding_tx=funding_tx, funding_sat=funding_sat,
|
||||||
|
|
Loading…
Add table
Reference in a new issue