diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-09-04 11:29:11 -0700 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-09-04 11:29:11 -0700 |
commit | dcba6847668fffa75f55b254fd6df8ef411a358e (patch) | |
tree | fc61becbdb80d77e32b9f0401e3e4ef0a932271b | |
parent | ee74110cffe09a0127aac68f5a29d06bf33ea7d8 (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.
-rw-r--r-- | server.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |