mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 02:21:35 +00:00
Gracefully fail to log a market_tick
This commit is contained in:
parent
44d593e6d1
commit
533809749c
@ -743,14 +743,16 @@ class Logics:
|
|||||||
order.maker.profile.save()
|
order.maker.profile.save()
|
||||||
order.taker.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
|
# With the bond confirmation the order is extended 'public_order_duration' hours
|
||||||
order.expires_at = timezone.now() + timedelta(
|
order.expires_at = timezone.now() + timedelta(
|
||||||
seconds=Order.t_to_expire[Order.Status.WF2])
|
seconds=Order.t_to_expire[Order.Status.WF2])
|
||||||
order.status = Order.Status.WF2
|
order.status = Order.Status.WF2
|
||||||
order.save()
|
order.save()
|
||||||
|
# Log a market tick
|
||||||
|
try:
|
||||||
|
MarketTick.log_a_tick(order)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user