From 4e9c5c835c28522586f9e1817a88c385d283ff76 Mon Sep 17 00:00:00 2001 From: Ildar Nasyrov Date: Mon, 23 May 2016 21:53:34 +0500 Subject: [PATCH] [FIX] mailgun: typo --- mailgun/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailgun/models.py b/mailgun/models.py index 2eb8bac..7fa1136 100644 --- a/mailgun/models.py +++ b/mailgun/models.py @@ -33,5 +33,5 @@ class IrConfigParameter(models.Model): if api_key and mail_domain: url = "https://api.mailgun.net/v3/domains/%s/verify" % mail_domain res = requests.put(url, auth=("api", api_key)) - if res.status_code == 200 and simplejson.loads(res.text)["domain"]["sate"] == "active": + if res.status_code == 200 and simplejson.loads(res.text)["domain"]["state"] == "active": cron_record.write({'active': False})