Gracefully fail to log a market_tick

This commit is contained in:
Reckless_Satoshi 2022-03-05 04:19:56 -08:00
parent 44d593e6d1
commit 533809749c
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -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