summaryrefslogtreecommitdiffstats
path: root/sshuttle/hostwatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'sshuttle/hostwatch.py')
-rw-r--r--sshuttle/hostwatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshuttle/hostwatch.py b/sshuttle/hostwatch.py
index 87806b7..a162212 100644
--- a/sshuttle/hostwatch.py
+++ b/sshuttle/hostwatch.py
@@ -108,7 +108,7 @@ def _check_revdns(ip):
debug3('< %s\n' % r[0])
check_host(r[0])
found_host(r[0], ip)
- except socket.herror:
+ except (socket.herror, UnicodeError):
pass
@@ -119,7 +119,7 @@ def _check_dns(hostname):
debug3('< %s\n' % ip)
check_host(ip)
found_host(hostname, ip)
- except socket.gaierror:
+ except (socket.gaierror, UnicodeError):
pass