Improve checking of input values
This commit is contained in:
1 parent
54ef2e642b
commit
42aac8ce10
1 file changed
+1
-1
+1
-1
@@ -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