diff --git a/src/warnet/cln.py b/src/warnet/cln.py index d0bf907ef..53ed5ffa1 100644 --- a/src/warnet/cln.py +++ b/src/warnet/cln.py @@ -82,6 +82,8 @@ def open_channel_to_tank(self, index: int, channel_open_data: str) -> str: tank = self.warnet.tanks[index] [pubkey, host] = tank.lnnode.getURI().split("@") res = self.lncli(f"fundchannel id={pubkey} {channel_open_data}") + if "txid" not in res or "outnum" not in res: + raise ValueError(f"Error opening channel to tank: {res}") return f"{res['txid']}:{res['outnum']}" def update_channel_policy(self, chan_point: str, policy: str) -> str: