From 4dab66bfeecabb1ba35d6c9dac9e8d9d0b718035 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 19 Apr 2020 18:08:52 +0200 Subject: [PATCH] avoid using bare Exception in try catch block --- certbot_dns_corenetworks/dns_corenetworks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot_dns_corenetworks/dns_corenetworks.py b/certbot_dns_corenetworks/dns_corenetworks.py index 37ab43f..01fbf59 100644 --- a/certbot_dns_corenetworks/dns_corenetworks.py +++ b/certbot_dns_corenetworks/dns_corenetworks.py @@ -210,7 +210,7 @@ class _CorenetworksClient(object): logger.debug("Testing {0} for domain {1}...".format(guess, domain_name)) try: info = self.client.zone(guess)[0] - except Exception: + except CoreNetworksException: continue logger.debug("Found zone '{zone}': {info}".format(zone=guess, info=info))