Version 2.6.9

This commit is contained in:
Jeroen Oudshoorn
2024-01-14 09:41:39 +01:00
parent b03b3119c7
commit 18217119fc
5 changed files with 12 additions and 9 deletions

View File

@ -444,7 +444,10 @@ def iface_channels(ifname):
output = subprocess.getoutput("/sbin/iw phy%s channels | grep ' MHz' | grep -v disabled | sed 's/^.*\[//g' | sed s/\].*\$//g" % phy)
for line in output.split("\n"):
line = line.strip()
channels.append(int(line))
try:
channels.append(int(line))
except Exception as e:
pass
return channels