1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

fastdns: resolved naming mismatch for exception class

This commit is contained in:
Basir
2019-07-29 13:25:26 -04:00
parent 55210ebb05
commit b2bd91a998

View File

@@ -19,7 +19,7 @@ class AkamaiClientNotFound(Exception):
def __init__(self, resp):
message = "404: Resource not found"
super(AkamaiClientException, self).__init__(message)
super(AkamaiClientNotFound, self).__init__(message)
class AkamaiClient(object):
@@ -187,7 +187,7 @@ class AkamaiProvider(BaseProvider):
response = self._dns_client.zone_recordset_get(name)
self._zone_records[zone.name] = response.json()["recordsets"]
except (AkamaiClientException, KeyError):
except (AkamaiClientNotFound, KeyError):
return []
return self._zone_records[zone.name]
@@ -231,7 +231,7 @@ class AkamaiProvider(BaseProvider):
try:
self._dns_client.zone_get(zone_name)
except AkamaiClientException:
except AkamaiClientNotFound:
self.log.info("zone not found, creating zone")
params = self._build_zone_config(zone_name)
self._dns_client.zone_create(self._contractId, params, self._gid)