mirror of
https://github.com/thegeeklab/certbot-dns-corenetworks.git
synced 2024-11-22 06:40:39 +00:00
avoid using bare Exception in try catch block
This commit is contained in:
parent
33ded01009
commit
4dab66bfee
@ -210,7 +210,7 @@ class _CorenetworksClient(object):
|
|||||||
logger.debug("Testing {0} for domain {1}...".format(guess, domain_name))
|
logger.debug("Testing {0} for domain {1}...".format(guess, domain_name))
|
||||||
try:
|
try:
|
||||||
info = self.client.zone(guess)[0]
|
info = self.client.zone(guess)[0]
|
||||||
except Exception:
|
except CoreNetworksException:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
logger.debug("Found zone '{zone}': {info}".format(zone=guess, info=info))
|
logger.debug("Found zone '{zone}': {info}".format(zone=guess, info=info))
|
||||||
|
Loading…
Reference in New Issue
Block a user