Skip to content

Commit

Permalink
Fixed pyric.error: [Errno 19] No device at None (#1471, #1474, #1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophron committed Mar 9, 2022
1 parent 90b095a commit f2adffa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wifiphisher/common/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,12 @@ def unblock_interface(self, interface_name):

# unblock card if it is blocked

if pyw.isblocked(card):
pyw.unblock(card)

try:
if pyw.isblocked(card):
pyw.unblock(card)
except pyric.error:
pass

def set_interface_channel(self, interface_name, channel):
"""
Set the channel for the interface
Expand Down

0 comments on commit f2adffa

Please sign in to comment.