From 3e0b3beebd2f3703a6ca0cb0d3b69377c84634ae Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Tue, 2 Jan 2018 15:45:59 -0800 Subject: [PATCH] authz -> authzr --- acme/acme/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme/acme/client.py b/acme/acme/client.py index b1703f529..79418513b 100644 --- a/acme/acme/client.py +++ b/acme/acme/client.py @@ -353,8 +353,8 @@ class Client(object): # pylint: disable=too-many-instance-attributes for chall in authzr.body.challenges: if chall.error != None: raise Exception("failed challenge for %s: %s" % - (authz.body.identifier.value, chall.error)) - raise Exception("failed authorization: %s" % authz.body) + (authzr.body.identifier.value, chall.error)) + raise Exception("failed authorization: %s" % authzr.body) latest = self._order_resource_from_response(self.net.get(orderr.uri), uri=orderr.uri) self.net.post(latest.body.finalize, messages.CertificateRequest(csr=orderr.csr)) while datetime.datetime.now() < deadline: