From b8db5007fa6fa89ea95d8951d669031586e93e2a Mon Sep 17 00:00:00 2001 From: Dan O'Reilly Date: Sat, 21 Mar 2009 19:41:13 -0400 Subject: [PATCH] Add missing check for no interface to GetIP. --- wicd/wnettools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wicd/wnettools.py b/wicd/wnettools.py index 3009730..01e15fe 100644 --- a/wicd/wnettools.py +++ b/wicd/wnettools.py @@ -577,6 +577,7 @@ class BaseInterface(object): The IP address of the interface in dotted quad form. """ + if not self.iface: return "" if not ifconfig: cmd = 'ifconfig ' + self.iface if self.verbose: print cmd