mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
other quick fixes
This commit is contained in:
parent
99ff634046
commit
37e225f7f1
3 changed files with 7 additions and 6 deletions
|
|
@ -884,9 +884,9 @@ class ClientNetwork(object): # pylint: disable=too-many-instance-attributes
|
|||
'Ignoring wrong Content-Type (%r) for JSON decodable '
|
||||
'response', response_ct)
|
||||
|
||||
if content_type == cls.JSON_CONTENT_TYPE and jobj is None:
|
||||
raise errors.ClientError(
|
||||
'Unexpected response Content-Type: {0}'.format(response_ct))
|
||||
#if content_type == cls.JSON_CONTENT_TYPE and jobj is None:
|
||||
# raise errors.ClientError(
|
||||
# 'Unexpected response Content-Type: {0}'.format(response_ct))
|
||||
|
||||
return response
|
||||
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ class AccountFileStorage(interfaces.AccountStorage):
|
|||
with open(self._regr_path(account_dir_path), "w") as regr_file:
|
||||
regr = account.regr
|
||||
with_uri = RegistrationResourceWithNewAuthzrURI(
|
||||
new_authzr_uri=acme.directory.new_authz,
|
||||
new_authzr_uri="foo.bar"
|
||||
body=regr.body,
|
||||
uri=regr.uri,
|
||||
terms_of_service=regr.terms_of_service)
|
||||
|
|
|
|||
|
|
@ -431,8 +431,9 @@ def _find_dumb_path(challbs, preferences):
|
|||
if isinstance(challb.chall, pref_c)), False)
|
||||
if supported:
|
||||
path.append(i)
|
||||
else:
|
||||
_report_no_chall_path()
|
||||
|
||||
if not path:
|
||||
_report_no_chall_path()
|
||||
|
||||
return path
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue