from .xlate import XLATOR
-__version__ = '3.4.3'
+__version__ = '3.4.4'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
try:
api_version = self.pdns.get_api_server_version() # noqa
- except PowerDNSHandlerError as e:
- raise ExpectedHandlerError(str(e))
+ except (PowerDNSHandlerError, ConnectionError) as e:
+ msg = "{c}: {e}".format(c=e.__class__.__name__, e=str(e))
+ raise ExpectedHandlerError(msg)
# -------------------------------------------------------------------------
def check_terraform_version(self):