Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-08-30 06:13:39 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-08-30 06:13:39 (GMT)
commit96df28dcaf2f71d95f182d91aaccd7f8aabec3a6 (patch)
treea1c5903a62b28a394018632b245e0b39b0934f66
parentf90b929fd911000d6f59cf141416fb8c39c31b1a (diff)
Don't traceback on systems without the right NM
-rw-r--r--shell/hardware/nmclient.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py
index fa77fd6..b14277e 100644
--- a/shell/hardware/nmclient.py
+++ b/shell/hardware/nmclient.py
@@ -321,12 +321,13 @@ class Device(gobject.GObject):
return ret
def get_frequency(self):
+ freq = 0.0
try:
freq = self.dev.getFrequency(timeout=3000)
except dbus.DBusException, e:
pass
# Hz -> GHz
- self._freq = freq / 1000000000
+ self._freq = freq / 1000000000.0
return self._freq
def get_strength(self):