]> git.ipfire.org Git - people/ms/ddns.git/blobdiff - src/ddns/system.py
Catch "no route to host" errors
[people/ms/ddns.git] / src / ddns / system.py
index 8415579455763369a0a9ac844841ab2ee1f39945..6a21af85395af68ac149b545d7f8009e5a3cd713 100644 (file)
@@ -211,6 +211,10 @@ class DDNSSystem(object):
                                elif e.reason.errno == 111:
                                        raise DDNSConnectionRefusedError
 
+                               # No route to host
+                               elif e.reason.errno == 113:
+                                       raise DDNSNoRouteToHostError(req.host)
+
                        # Raise all other unhandled exceptions.
                        raise