Skip to content

Commit

Permalink
Made the TOS url optional
Browse files Browse the repository at this point in the history
  • Loading branch information
TheStaticTurtle authored Dec 22, 2022
1 parent 056ac64 commit 65a2f23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sewer/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def __init__(
self.User_Agent = self.get_user_agent()
acme_endpoints = self.get_acme_endpoints().json()
self.ACME_GET_NONCE_URL = acme_endpoints["newNonce"]
self.ACME_TOS_URL = acme_endpoints["meta"]["termsOfService"]
try:
self.ACME_TOS_URL = acme_endpoints["meta"]["termsOfService"]
except KeyError:
self.ACME_TOS_URL = None
self.ACME_KEY_CHANGE_URL = acme_endpoints["keyChange"]
self.ACME_NEW_ACCOUNT_URL = acme_endpoints["newAccount"]
self.ACME_NEW_ORDER_URL = acme_endpoints["newOrder"]
Expand Down

0 comments on commit 65a2f23

Please sign in to comment.