Additional error handling around currencies without rates
This commit is contained in:
@@ -138,7 +138,7 @@ class Money(object):
|
||||
rates = await self.get_rates_all()
|
||||
if currency not in rates and not currency == "USD":
|
||||
log.error(f"Can't create ad without rates: {currency}")
|
||||
return
|
||||
return (None, None)
|
||||
if currency == "USD":
|
||||
min_amount = min_usd
|
||||
max_amount = max_usd
|
||||
|
||||
Reference in New Issue
Block a user