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
1 changed files with 1 additions and 1 deletions

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