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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user