mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
Apply lint's code style suggestions
This commit is contained in:
parent
90fb08a4a0
commit
6a0855de5d
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ def get_configurator():
|
|||
os_like = util.get_systemd_os_like()
|
||||
if os_like:
|
||||
for os_name in os_like:
|
||||
if os_name in OVERRIDE_CLASSES.keys():
|
||||
if os_name in OVERRIDE_CLASSES:
|
||||
override_class = OVERRIDE_CLASSES[os_name]
|
||||
if not override_class:
|
||||
# No override class found, return the generic configurator
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ def perform_registration(acme, config, tos_cb):
|
|||
external_account_binding=cast(Optional[messages.ExternalAccountBinding], eab))
|
||||
return acme.new_account_and_tos(newreg, tos_cb)
|
||||
except messages.Error as e:
|
||||
if e.code == "invalidEmail" or e.code == "invalidContact":
|
||||
if e.code in ('invalidEmail', 'invalidContact'):
|
||||
if config.noninteractive_mode:
|
||||
msg = ("The ACME server believes %s is an invalid email address. "
|
||||
"Please ensure it is a valid email and attempt "
|
||||
|
|
|
|||
Loading…
Reference in a new issue