diff --git a/clnclient.py b/clnclient.py index 74e135b..8c95d0b 100644 --- a/clnclient.py +++ b/clnclient.py @@ -73,7 +73,9 @@ class ClnClient: chan.local_alias = self.local_alias listnode = self._run("listnodes", chan.remote_node_id) if len(listnode["nodes"]) > 0: - chan.remote_alias = listnode["nodes"][0].get("alias", chan.remote_node_id) + chan.remote_alias = listnode["nodes"][0].get( + "alias", chan.remote_node_id + ) else: chan.remote_alias = chan.remote_node_id chan.last_forward = 0