Don't send invalid payment information to customer
This commit is contained in:
parent
bba7f90dd2
commit
6aec0c1078
|
@ -61,6 +61,9 @@ class Markets(util.Base):
|
||||||
if send_setting == "1":
|
if send_setting == "1":
|
||||||
account_info = self.get_matching_account_details(platform, currency)
|
account_info = self.get_matching_account_details(platform, currency)
|
||||||
formatted_account_info = self.format_payment_details(currency, account_info, real=True)
|
formatted_account_info = self.format_payment_details(currency, account_info, real=True)
|
||||||
|
if not formatted_account_info:
|
||||||
|
self.log.error(f"Payment info invalid: {formatted_account_info}")
|
||||||
|
return
|
||||||
post_message(
|
post_message(
|
||||||
trade_id,
|
trade_id,
|
||||||
f"Payment details: \n{formatted_account_info}",
|
f"Payment details: \n{formatted_account_info}",
|
||||||
|
|
Loading…
Reference in New Issue