X-Git-Url: http://git.ipfire.org/?p=ddns.git;a=blobdiff_plain;f=src%2Fddns%2Fsystem.py;h=8415579455763369a0a9ac844841ab2ee1f39945;hp=79bf19212c04ea08a1fdb80117bbceb5ceee1365;hb=ff43fa7041a5f948aa7f92047fbc53ea5b1a461f;hpb=694d84857af02588b1effb9ddf51c6847ff2a9ae diff --git a/src/ddns/system.py b/src/ddns/system.py index 79bf192..8415579 100644 --- a/src/ddns/system.py +++ b/src/ddns/system.py @@ -180,6 +180,12 @@ class DDNSSystem(object): elif e.code in (401, 403): raise DDNSAuthenticationError(e.reason) + # 404 - Not found + # Either the provider has changed the API, or + # there is an error on the server + elif e.code == 404: + raise DDNSNotFound(e.reason) + # 500 - Internal Server Error elif e.code == 500: raise DDNSInternalServerError(e.reason)