]> git.ipfire.org Git - people/ms/ddns.git/blobdiff - src/ddns/errors.py
Catch "no route to host" errors
[people/ms/ddns.git] / src / ddns / errors.py
index 293b4eb8f58510c8e1c8d6218220e80584c8eb10..26bc18ec46d508c02bbd6836d3cce18495e79bd5 100644 (file)
@@ -109,6 +109,13 @@ class DDNSNetworkUnreachableError(DDNSNetworkError):
        reason = N_("Network unreachable")
 
 
        reason = N_("Network unreachable")
 
 
+class DDNSNoRouteToHostError(DDNSNetworkError):
+       """
+               Thrown when there is no route to a host.
+       """
+       reason = N_("No route to host")
+
+
 class DDNSNotFound(DDNSError):
        """
                Thrown when the called URL has not been found
 class DDNSNotFound(DDNSError):
        """
                Thrown when the called URL has not been found