0
0
mirror of https://github.com/thegeeklab/certbot-dns-corenetworks.git synced 2024-11-24 19:40:41 +00:00

avoid using bare Exception in try catch block

This commit is contained in:
Robert Kaussow 2020-04-19 18:08:52 +02:00
parent 33ded01009
commit 4dab66bfee

View File

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