Skip to content

Commit

Permalink
Fixed typo in exception class name
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolodin7 committed Nov 17, 2023
1 parent 7685858 commit 421d540
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

To see unreleased changes, please see the [CHANGELOG on the master branch](https://github.com/gufolabs/gufo_acme/blob/master/CHANGELOG.md) guide.

## [Unreleased]

## Fixed

* Fixed typo in exception class name.

## 0.1.1 - 2023-11-16

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions src/gufo/acme/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
ACMECertificateError,
ACMEConnectError,
ACMEError,
ACMEFullfillmentFailed,
ACMEFulfillmentFailed,
ACMENotRegistredError,
ACMERateLimitError,
ACMETimeoutError,
Expand Down Expand Up @@ -633,7 +633,7 @@ async def fulfill_http_01(
Raises:
ACMETimeoutError: On timeouts.
ACMEFullfillmentFailed: If the client failed to
ACMEFulfillmentFailed: If the client failed to
fulfill any challenge.
ACMEError: and subclasses in case of other errors.
"""
Expand All @@ -653,7 +653,7 @@ async def fulfill_http_01(
fulfilled_challenge = ch
break
else:
raise ACMEFullfillmentFailed
raise ACMEFulfillmentFailed
# Wait for authorization became valid
await self._wait_for(self.wait_for_authorization(auth), 60.0)
# Clear challenge
Expand Down Expand Up @@ -916,7 +916,7 @@ async def fulfill_challenge(
h = self.fulfill_tls_alpn_01
else:
return False
logger.warning("Trying to fullfill %s for %s", challenge.type, domain)
logger.warning("Trying to fulfill %s for %s", challenge.type, domain)
r = await h(domain, challenge)
if r:
logger.warning(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
ACMEBadNonceError,
ACMEConnectError,
ACMEError,
ACMEFullfillmentFailed,
ACMEFulfillmentFailed,
ACMENotRegistredError,
ACMERateLimitError,
ACMETimeoutError,
Expand Down Expand Up @@ -544,7 +544,7 @@ async def inner():
uri = await client.new_account(EMAIL)
assert uri
# Create new order
with pytest.raises(ACMEFullfillmentFailed):
with pytest.raises(ACMEFulfillmentFailed):
await client.sign(domain, csr_pem)
# Deactivate account
await client.deactivate_account()
Expand Down

0 comments on commit 421d540

Please sign in to comment.