other quick fixes

This commit is contained in:
Brad Warren 2018-02-22 11:21:54 -08:00
parent 99ff634046
commit 37e225f7f1
3 changed files with 7 additions and 6 deletions

View file

@ -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

View file

@ -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)

View file

@ -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