]> git.ipfire.org Git - people/ms/ddns.git/blobdiff - src/ddns/providers.py
Soft-fail on network errors
[people/ms/ddns.git] / src / ddns / providers.py
index 28b765b550da956afa85ba7f09aa903b15910e5e..fc1fb82cb6ac63b7feb7e96ac5d6a013b0787fe3 100644 (file)
@@ -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: