Wrap API calls in helper and validate response

This commit is contained in:
2022-10-30 19:11:07 +00:00
parent f22fcfdaaa
commit c15ae379f5
15 changed files with 224 additions and 163 deletions

View File

@@ -91,8 +91,8 @@ class Account(models.Model):
"""
client = self.get_client()
if client:
supported_symbols = client.get_supported_assets()
if supported_symbols:
success, supported_symbols = client.get_supported_assets()
if success:
self.supported_symbols = supported_symbols
super().save(*args, **kwargs)