Additional error handling around currencies without rates
This commit is contained in:
@@ -583,8 +583,10 @@ class LocalPlatformClient(ABC):
|
||||
if payment_details:
|
||||
form["account_info"] = payment_details_text
|
||||
form["msg"] = ad_text
|
||||
form["min_amount"] = round(min_amount, 2)
|
||||
form["max_amount"] = round(max_amount, 2)
|
||||
if min_amount is not None:
|
||||
form["min_amount"] = round(min_amount, 2)
|
||||
if max_amount is not None:
|
||||
form["max_amount"] = round(max_amount, 2)
|
||||
|
||||
if edit:
|
||||
ad_response = await self.api.ad(ad_id=ad_id, **form)
|
||||
|
||||
Reference in New Issue
Block a user