diff --git a/CHANGELOG.md b/CHANGELOG.md index ad89abb..656e431 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/gufo/acme/client.py b/src/gufo/acme/client.py index 27f775f..a216e04 100644 --- a/src/gufo/acme/client.py +++ b/src/gufo/acme/client.py @@ -50,7 +50,7 @@ ACMECertificateError, ACMEConnectError, ACMEError, - ACMEFullfillmentFailed, + ACMEFulfillmentFailed, ACMENotRegistredError, ACMERateLimitError, ACMETimeoutError, @@ -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. """ @@ -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 @@ -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( diff --git a/tests/test_client.py b/tests/test_client.py index 1abb028..c0bb3cf 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -22,7 +22,7 @@ ACMEBadNonceError, ACMEConnectError, ACMEError, - ACMEFullfillmentFailed, + ACMEFulfillmentFailed, ACMENotRegistredError, ACMERateLimitError, ACMETimeoutError, @@ -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()