|
@ -454,7 +454,7 @@ class ChannelDB(JsonDB): |
|
|
try: |
|
|
try: |
|
|
channel_info = self._id_to_channel_info[short_channel_id] |
|
|
channel_info = self._id_to_channel_info[short_channel_id] |
|
|
except KeyError: |
|
|
except KeyError: |
|
|
self.print_error('cannot find channel {}'.format(short_channel_id)) |
|
|
self.print_error(f'remove_channel: cannot find channel {bh2u(short_channel_id)}') |
|
|
return |
|
|
return |
|
|
self._id_to_channel_info.pop(short_channel_id, None) |
|
|
self._id_to_channel_info.pop(short_channel_id, None) |
|
|
for node in (channel_info.node_id_1, channel_info.node_id_2): |
|
|
for node in (channel_info.node_id_1, channel_info.node_id_2): |
|
|