Skip to content

Commit 53e2183

Browse files
committed
If WiFi device is not available, log an error
1 parent 09654b9 commit 53e2183

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/wifi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,9 @@ def get_device():
236236
== config.interface.lower()
237237
):
238238
return device
239-
else:
240-
raise WifiDeviceNotFound
239+
240+
# If device was not found during the loop
241+
raise WifiDeviceNotFound
241242

242243
# Fetch last Wi-Fi interface found
243244
devices = dict(

0 commit comments

Comments
 (0)