Skip to content

Commit

Permalink
wifi: Fix case with no auth
Browse files Browse the repository at this point in the history
  • Loading branch information
alxchk committed May 15, 2019
1 parent fc7da71 commit 46e5973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Windows/lazagne/softwares/wifi/wifi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import os
import sys
import traceback
Expand Down Expand Up @@ -91,7 +91,7 @@ def run(self):
self.error(traceback.format_exc())
values['INFO'] = '[!] Password not found.'

if values and values['Authentication'] != 'open':
if values and values.get('Authentication') != 'open':
pwd_found.append(values)

constant.wifi_password = True
Expand Down

0 comments on commit 46e5973

Please sign in to comment.