Don't traceback on systems without the right NM
This commit is contained in:
parent
f90b929fd9
commit
96df28dcaf
@ -321,12 +321,13 @@ class Device(gobject.GObject):
|
|||||||
return ret
|
return ret
|
||||||
|
|
||||||
def get_frequency(self):
|
def get_frequency(self):
|
||||||
|
freq = 0.0
|
||||||
try:
|
try:
|
||||||
freq = self.dev.getFrequency(timeout=3000)
|
freq = self.dev.getFrequency(timeout=3000)
|
||||||
except dbus.DBusException, e:
|
except dbus.DBusException, e:
|
||||||
pass
|
pass
|
||||||
# Hz -> GHz
|
# Hz -> GHz
|
||||||
self._freq = freq / 1000000000
|
self._freq = freq / 1000000000.0
|
||||||
return self._freq
|
return self._freq
|
||||||
|
|
||||||
def get_strength(self):
|
def get_strength(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user