From ff02ba5b163dfd4a470e8f09dd343b5227c8a551 Mon Sep 17 00:00:00 2001 From: wad Date: Mon, 23 Apr 2018 20:23:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B1=D0=B0=D0=B3=D1=84=D0=B8=D0=BA=D1=81=20?= =?UTF-8?q?=D0=B7=D0=B0=D1=82=D0=B8=D1=80=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B5=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BE=D0=B4=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B9=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- finance/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)