Don't send invalid payment information to customer

This commit is contained in:
Mark Veidemanis 2022-06-01 09:08:39 +01:00
parent bba7f90dd2
commit 6aec0c1078
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ class Markets(util.Base):
if send_setting == "1":
account_info = self.get_matching_account_details(platform, currency)
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(
trade_id,
f"Payment details: \n{formatted_account_info}",