authz -> authzr

This commit is contained in:
Jacob Hoffman-Andrews 2018-01-02 10:55:06 -08:00
parent c0841ca485
commit 8ec6b7c6e2

View file

@ -350,7 +350,7 @@ class Client(object): # pylint: disable=too-many-instance-attributes
break
for authzr in responses:
if authzr.body.status != messages.STATUS_VALID:
for chall in authz.body.challenges:
for chall in authzr.body.challenges:
if chall.error != None:
raise Exception("failed challenge for %s: %s" %
(authz.body.identifier.value, chall.error))