From 98d49ae8bf7b686601efda423fd5875249451671 Mon Sep 17 00:00:00 2001 From: James Kasten Date: Sat, 26 Sep 2015 01:34:09 -0700 Subject: [PATCH] Remove excessive error handling --- letsencrypt/cli.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index cd34708b9..11ee65734 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -323,10 +323,7 @@ def run(args, config, plugins): # pylint: disable=too-many-branches,too-many-lo # TODO: Handle errors from _init_le_client? le_client = _init_le_client(args, config, authenticator, installer) - try: - lineage = _auth_from_domains(le_client, config, domains, plugins) - except errors.Error as err: - return str(err) + lineage = _auth_from_domains(le_client, config, domains, plugins) # TODO: We also need to pass the fullchain (for Nginx) le_client.deploy_certificate( @@ -369,10 +366,7 @@ def auth(args, config, plugins): certr, chain, args.cert_path, args.chain_path) else: domains = _find_domains(args, installer) - try: - _auth_from_domains(le_client, config, domains, plugins) - except errors.Error as err: - return str(err) + _auth_from_domains(le_client, config, domains, plugins) def install(args, config, plugins):