Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Jul 29, 2021
1 parent 4526f46 commit 737f2ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rebalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 737f2ab

Please sign in to comment.