1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-06 13:54:17 +01:00

Improve checking of input values

This commit is contained in:
David Paleino
2012-11-18 00:15:22 +01:00
parent 54ef2e642b
commit 42aac8ce10

View File

@@ -1586,7 +1586,7 @@ class BaseWirelessInterface(BaseInterface):
# process the output
rates = rates.split('\n')
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')
def _get_link_quality(self, output):