Wrap API calls in helper and validate response
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user