Browse Source

[FIX] mailgun: typo

pull/32/head
Ildar Nasyrov 9 years ago
parent
commit
4e9c5c835c
  1. 2
      mailgun/models.py

2
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})
Loading…
Cancel
Save