Fixed KeyError: '2G' (#505)

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
jitendracandela
2022-05-04 11:06:07 +05:30
committed by GitHub
parent 7bf47a5d83
commit 719f8b6d3c

View File

@@ -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)