LIBRARY_NAME = "pp-pdns-api-client"
-__version__ = '0.2.1'
+__version__ = '0.2.2'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
except (ValueError, TypeError) as e:
msg = _("Value {!r} for PowerDNS API timeout is invalid:").format(val)
msg += " " + str(e)
+ if self.raise_on_error:
+ raise PdnsConfigError(msg)
LOG.error(msg)
- continue
+ return
self.pdns_timeout = timeout
if val:
if self.verbose > 2:
key_show = '******'
- self.verbose > 4:
+ if self.verbose > 4:
key_show = val
msg = _("Found API key for PDNS: {!r}.").format(key_show)
LOG.debug(msg)