From 3976b9c2037aa99eb1f446e38eca215074ec54ee Mon Sep 17 00:00:00 2001 From: tecnovert Date: Wed, 29 Jun 2022 13:02:32 +0200 Subject: [PATCH] tests: Fix ci tests. --- basicswap/basicswap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index 4329fd4..341fdfb 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -3850,7 +3850,7 @@ class BasicSwap(BaseApp): if bid.rate != offer.rate: raise AutomationConstraint('Need exact rate match') - active_bids, total_bids_value = self.getCompletedAndActiveBidsValue(offer, session) + active_bids, total_bids_value = self.getCompletedAndActiveBidsValue(offer, use_session) if total_bids_value + bid.amount > offer.amount_from: raise AutomationConstraint('Over remaining offer value {}'.format(offer.amount_from - total_bids_value)) @@ -3892,6 +3892,8 @@ class BasicSwap(BaseApp): return False except Exception as e: self.log.error('shouldAutoAcceptBid: %s', str(e)) + if self.debug: + self.log.error(traceback.format_exc()) return False finally: if session is None: