mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2026-01-27 10:23:37 +00:00
Fixed KeyError: '2G' (#505)
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
@@ -819,6 +819,10 @@ def get_ap_channel(get_apnos, get_configuration):
|
||||
elif j < 36:
|
||||
dict_band_channel["2G"] = j
|
||||
continue
|
||||
if not "2G" in dict_band_channel:
|
||||
dict_band_channel["2G"] = "AUTO"
|
||||
if not "5G" in dict_band_channel:
|
||||
dict_band_channel["5G"] = "AUTO"
|
||||
all_data.append(dict_band_channel)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
Reference in New Issue
Block a user