mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
Merge pull request #2135 from kuba/acme-client-dead-error
Remove dead code (error in except)
This commit is contained in:
commit
de89eb89e2
1 changed files with 2 additions and 2 deletions
|
|
@ -481,7 +481,7 @@ class Client(object): # pylint: disable=too-many-instance-attributes
|
|||
'Successful revocation must return HTTP OK status')
|
||||
|
||||
|
||||
class ClientNetwork(object):
|
||||
class ClientNetwork(object): # pylint: disable=too-many-instance-attributes
|
||||
"""Client network."""
|
||||
JSON_CONTENT_TYPE = 'application/json'
|
||||
JSON_ERROR_CONTENT_TYPE = 'application/problem+json'
|
||||
|
|
@ -537,7 +537,7 @@ class ClientNetwork(object):
|
|||
# TODO: response.json() is called twice, once here, and
|
||||
# once in _get and _post clients
|
||||
jobj = response.json()
|
||||
except ValueError as error:
|
||||
except ValueError:
|
||||
jobj = None
|
||||
|
||||
if not response.ok:
|
||||
|
|
|
|||
Loading…
Reference in a new issue