Apply lint's code style suggestions

This commit is contained in:
Erica Portnoy 2021-11-22 17:53:45 -08:00
parent 90fb08a4a0
commit 6a0855de5d
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 "