diff --git a/finance/tasks.py b/finance/tasks.py index dbd12fb..844da9d 100644 --- a/finance/tasks.py +++ b/finance/tasks.py @@ -26,8 +26,8 @@ def periodic_billing(): try: _yandex_repeat_card_payment(invoice) except Exception as exc: - finance_logger.exception('YandexMoney repeatCardPayment Exception', invoice_id=invoice.id) - invoice.comment = 'Ошибка при попытке повторного платежа, свяжитесь с клиентской службой' + finance_logger.exception('Yandex Money repeatCardPayment Exception', invoice_id=invoice.id) + invoice.comment += 'Yandex Money: Ошибка при попытке повторного платежа, свяжитесь с клиентской службой' invoice.save() @@ -78,4 +78,4 @@ def _check_yandex_response_status(invoice, resp_text): processed_dt = resp_node.getAttribute('processedDT') tech_message = resp_node.getAttribute('techMessage') invoice.status += Invoice.BILL_STATUSES[-1][0] - invoice.comment += 'Yandex Kassa: ошибка № {}, сообщение {} от {}'.format(error, tech_message, processed_dt) + invoice.comment += 'Yandex Money: ошибка № {}, сообщение {} от {}'.format(error, tech_message, processed_dt)