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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy