Validate addresses and enable payments

This commit is contained in:
2023-05-20 13:41:49 +01:00
parent 390132fb10
commit 85c64efc78
5 changed files with 765 additions and 9 deletions

View File

@@ -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):
"""