Don't send invalid payment information to customer

master
Mark Veidemanis 2 years ago
parent bba7f90dd2
commit 6aec0c1078
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -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}",

Loading…
Cancel
Save