Error emails list is already a list

This commit is contained in:
PCoder 2020-01-02 12:27:20 +05:30
parent b4a3c5e277
commit 7d7bd60a7f

View file

@ -1824,7 +1824,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
'subject': ("Deleted " if response['status']
else "ERROR deleting ") + admin_msg_sub,
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
'to': [settings.DCL_ERROR_EMAILS_TO_LIST],
'to': settings.DCL_ERROR_EMAILS_TO_LIST,
'body': "\n".join(
["%s=%s" % (k, v) for (k, v) in admin_email_body.items()]),
}