Bugfixing Cronjob ohne try
This commit is contained in:
parent
e30fd7a7bf
commit
ef493e0da4
|
|
@ -1668,7 +1668,7 @@ def cronactionsbill(request, code):
|
||||||
else:
|
else:
|
||||||
mail_to_send = agency.payment_address
|
mail_to_send = agency.payment_address
|
||||||
msg_html = render_to_string('users/newbill_mail.html', {})
|
msg_html = render_to_string('users/newbill_mail.html', {})
|
||||||
send_mail('Digitale Agentur | Rechnung', 'Sehr geehrte Nutzer, es wurde eine Rechnung für Ihre digitale Agentur erstellt. Diese können Sie unter Einstellungen, Abrechnung einsehen.','noreply@digitale-agentur.com',[mail_to_send],html_message=msg_html,fail_silently=True)
|
send_mail('Digitale Agentur | Rechnung', 'Sehr geehrte Nutzer, es wurde eine Rechnung für Ihre Digitale Agentur erstellt. Diese können Sie unter Einstellungen, Abrechnung einsehen.','noreply@digitale-agentur.com',[mail_to_send],html_message=msg_html,fail_silently=True)
|
||||||
data.update({"newBill_" + str(agency.pk) : newbill.lexid})
|
data.update({"newBill_" + str(agency.pk) : newbill.lexid})
|
||||||
else:
|
else:
|
||||||
data.update({"status" : "failed"})
|
data.update({"status" : "failed"})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue