mirror of
https://github.com/gryf/wicd.git
synced 2026-03-11 12:05:51 +01:00
Improve checking of input values
This commit is contained in:
@@ -1586,7 +1586,7 @@ class BaseWirelessInterface(BaseInterface):
|
|||||||
# process the output
|
# process the output
|
||||||
rates = rates.split('\n')
|
rates = rates.split('\n')
|
||||||
rates = [x.strip().split(' ')[0] for x in rates]
|
rates = [x.strip().split(' ')[0] for x in rates]
|
||||||
rates = [x for x in rates if x[0].isdigit()]
|
rates = [x for x in rates if x and x[0].isdigit()]
|
||||||
return dbus.Array(rates, signature='v')
|
return dbus.Array(rates, signature='v')
|
||||||
|
|
||||||
def _get_link_quality(self, output):
|
def _get_link_quality(self, output):
|
||||||
|
|||||||
Reference in New Issue
Block a user