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:
parent
33ded01009
commit
4dab66bfee
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user