X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fddns.git;a=blobdiff_plain;f=src%2Fddns%2Fproviders.py;fp=src%2Fddns%2Fproviders.py;h=fc1fb82cb6ac63b7feb7e96ac5d6a013b0787fe3;hp=28b765b550da956afa85ba7f09aa903b15910e5e;hb=29a69850e9e172b5a868e3f2dc0ac63ba08871a8;hpb=5d98b00335d8c016c19c884e51c0a48aee2e1692 diff --git a/src/ddns/providers.py b/src/ddns/providers.py index 28b765b..fc1fb82 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -161,6 +161,12 @@ class DDNSProvider(object): try: self.update() + # Catch network errors early, because we do not want to log + # them to the database. They are usually temporary and caused + # by the client side, so that we will retry quickly. + except DDNSNetworkError as e: + raise + # In case of any errors, log the failed request and # raise the exception. except DDNSError as e: