From 737f2abb70de3294c5f020e4d4535579cdf56ee8 Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Thu, 29 Jul 2021 16:57:57 +0200 Subject: [PATCH] cleanup --- rebalance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rebalance.py b/rebalance.py index d555444..cf0afe7 100755 --- a/rebalance.py +++ b/rebalance.py @@ -300,7 +300,8 @@ def main(): first_hop_channel_id = vars(arguments)["from"] last_hop_channel_id = arguments.to - if not arguments.listcompact and not arguments.list_candidates and last_hop_channel_id is None and first_hop_channel_id is None: + no_channel_id_given = not last_hop_channel_id and not first_hop_channel_id + if not arguments.listcompact and not arguments.list_candidates and no_channel_id_given: argument_parser.print_help() sys.exit(1)