From 37089b9eff18929ffbc99be0769a2916357baa35 Mon Sep 17 00:00:00 2001 From: Miquel Ruiz Date: Sun, 25 Oct 2015 10:18:06 +0000 Subject: [PATCH] Ensure cancelling without password exits --- letsencrypt/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/letsencrypt/client.py b/letsencrypt/client.py index 8e053e926..959eb9917 100644 --- a/letsencrypt/client.py +++ b/letsencrypt/client.py @@ -100,6 +100,11 @@ def register(config, account_storage, tos_cb=None): if account_storage.find_all(): logger.info("There are already existing accounts for %s", config.server) if config.email is None: + if not config.register_unsafely_without_email: + msg = ("No email was provided and " + "--register-unsafely-without-email was not present.") + logger.warn(msg) + raise errors.Error(msg) logger.warn("Registering without email!") # Each new registration shall use a fresh new key