summaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2010-09-04 11:29:11 -0700
committerAvery Pennarun <apenwarr@gmail.com>2010-09-04 11:29:11 -0700
commitdcba6847668fffa75f55b254fd6df8ef411a358e (patch)
treefc61becbdb80d77e32b9f0401e3e4ef0a932271b /server.py
parentee74110cffe09a0127aac68f5a29d06bf33ea7d8 (diff)
If netstat -rn returns an error, make that non-fatal.
That only really stops --auto-nets from working; it's mostly harmless otherwise. And apparently some locked-down shared hosts don't let you get the list of routes.
Diffstat (limited to 'server.py')
-rw-r--r--server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.py b/server.py
index ec2d87f..ea2b067 100644
--- a/server.py
+++ b/server.py
@@ -57,7 +57,8 @@ def _list_routes():
routes.append((socket.inet_ntoa(struct.pack('!I', ip)), width))
rv = p.wait()
if rv != 0:
- raise Fatal('%r returned %d' % (argv, rv))
+ log('WARNING: %r returned %d\n' % (argv, rv))
+ log('WARNING: That prevents --auto-nets from working.\n')
return routes