Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
fixed crash from issue #538
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-belcher committed Jun 1, 2016
1 parent 1f7de19 commit 8fa6b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joinmarket/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def calc_zero_change_cj_amount(ordercombo):
if len(orders_fees) < n - len(chosen_orders):
log.debug('ERROR not enough liquidity in the orderbook')
# TODO handle not enough liquidity better, maybe an Exception
return None, 0
return None, 0, 0
for i in range(n - len(chosen_orders)):
chosen_order, chosen_fee = chooseOrdersBy(orders_fees, n)
log.debug('chosen = ' + str(chosen_order))
Expand Down

0 comments on commit 8fa6b0a

Please sign in to comment.