Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Jan 1, 2025
1 parent 33b9815 commit 00f75d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ca/django_ca/acme/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ async def acme_request(self, message: messages.Registration, slug: Optional[str]
thumbprint = jose.json_util.encode_b64jose(self.jwk.thumbprint())

# Queryset used for fetching accounts. The CA is used for loading its serial, which is used in URLs.
account_qs: AcmeAccountQuerySet = AcmeAccount.objects.url() # type: ignore[assignment]
account_qs: AcmeAccountQuerySet = AcmeAccount.objects.url()

# RFC 8555, section 7.3:
#
Expand Down Expand Up @@ -806,7 +806,7 @@ async def acme_request(self, slug: str) -> AcmeResponseOrder:
if expires.tzinfo is None: # acme.messages.Order requires a timezone-aware object
expires = expires.replace(tzinfo=tz.utc)

authorizations = order.authorizations.url()
authorizations = order.authorizations.url() # type: ignore[attr-defined]
if order.status in [AcmeOrder.STATUS_VALID, AcmeOrder.STATUS_INVALID]:
# RFC 8555, section 7.1.3:
#
Expand Down Expand Up @@ -950,7 +950,7 @@ async def acme_request(self, message: CertificateRequest, slug: Optional[str]) -
if expires.tzinfo is None: # acme.messages.Order requires a timezone-aware object
expires = expires.replace(tzinfo=tz.utc)

authorizations = order.authorizations.url().all()
authorizations = order.authorizations.url().all() # type: ignore[attr-defined]
async for auth in authorizations:
if auth.status != AcmeAuthorization.STATUS_VALID:
# This is a state that should never happen in practice, because the order is only marked as
Expand Down

0 comments on commit 00f75d0

Please sign in to comment.