We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1044af commit 1a8c944Copy full SHA for 1a8c944
1 file changed
netjsonconfig/backends/airos/converters.py
@@ -44,7 +44,10 @@ def get_psk(interface):
44
return t
45
46
def is_wpa2_personal(interface):
47
- return interface['encryption']['protocol'] == 'wpa2_personal'
+ try:
48
+ return interface['encryption']['protocol'] == 'wpa2_personal'
49
+ except:
50
+ return False
51
52
try:
53
return [get_psk(i) for i in wireless if is_wpa2_personal(i)][0]
0 commit comments