From 7b2a3bc2e0178a2c72e4d1bb55f75c367a3d79f6 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 14 Jul 2008 14:03:12 +0000 Subject: return a tuple if route commande failed. Fix #7451 --- diff --git a/src/psutils.py b/src/psutils.py index f7c6db7..630d39c 100644 --- a/src/psutils.py +++ b/src/psutils.py @@ -284,7 +284,7 @@ class IP4AddressMonitor(gobject.GObject): import commands (s, o) = commands.getstatusoutput("/sbin/route -n") if s != 0: - return + return None, None for line in o.split('\n'): fields = line.split(" ") if fields[0] == "0.0.0.0": -- cgit v0.9.1