Commit 29d379ca authored by Michael Büsch's avatar Michael Büsch

Fix crash if b43 is not loaded.

Signed-off-by: Michael Büsch's avatarMichael Buesch <mb@bu3sch.de>
parent 8bbba3f4
......@@ -71,7 +71,11 @@ class B43:
b43_path += phy
else:
# Get the PHY.
phys = os.listdir(b43_path)
try:
phys = os.listdir(b43_path)
except OSError:
print "Could not find B43's debugfs directory: %s" % b43_path
raise B43Exception
if not phys:
print "Could not find any b43 device"
raise B43Exception
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment