Validate addresses and enable payments
This commit is contained in:
@@ -87,7 +87,10 @@ class Money(object):
|
||||
cast["xtype"] = msgtype
|
||||
# cast["user_id"] = self.instance.user.id
|
||||
# cast["platform_id"] = self.instance.id
|
||||
await self.es.index(index=settings.ELASTICSEARCH_INDEX, body=cast)
|
||||
try:
|
||||
await self.es.index(index=settings.ELASTICSEARCH_INDEX, body=cast)
|
||||
except RuntimeError:
|
||||
log.warning("Could not write to ES")
|
||||
|
||||
async def lookup_rates(self, platform, ads, rates=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user