Browse Source

fastdns: fixed how exceptions are handled in _request

pull/379/head
Basir 6 years ago
parent
commit
93e1e0939d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      octodns/provider/fastdns.py

+ 3
- 2
octodns/provider/fastdns.py View File

@ -51,8 +51,9 @@ class AkamaiClient(object):
url = urljoin(self.base, path)
resp = self._sess.request(method, url, params=params, json=data)
if resp.status_code > 299:
raise AkamaiClientException(resp)
if resp.status_code == 404:
raise AkamaiClientNotFound(resp)
resp.raise_for_status()
return resp


Loading…
Cancel
Save