From 533809749cd79e20e0107d94f70eb2a08232631b Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sat, 5 Mar 2022 04:19:56 -0800 Subject: [PATCH] Gracefully fail to log a market_tick --- api/logics.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/logics.py b/api/logics.py index 532675f4..81760448 100644 --- a/api/logics.py +++ b/api/logics.py @@ -743,14 +743,16 @@ class Logics: order.maker.profile.save() order.taker.profile.save() - # Log a market tick - MarketTick.log_a_tick(order) - # With the bond confirmation the order is extended 'public_order_duration' hours order.expires_at = timezone.now() + timedelta( seconds=Order.t_to_expire[Order.Status.WF2]) order.status = Order.Status.WF2 order.save() + # Log a market tick + try: + MarketTick.log_a_tick(order) + except: + pass return True @classmethod