projects
/
b43-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bbba3f
)
Fix crash if b43 is not loaded.
author
Michael Buesch
<mb@bu3sch.de>
Wed, 23 Jul 2008 22:36:58 +0000
(
00:36
+0200)
committer
Michael Buesch
<mb@bu3sch.de>
Wed, 23 Jul 2008 22:36:58 +0000
(
00:36
+0200)
Signed-off-by: Michael Buesch <mb@bu3sch.de>
debug/libb43.py
patch
|
blob
|
history
diff --git
a/debug/libb43.py
b/debug/libb43.py
index 671ad2c6f173a141bb2bbffa984c6200f5c929e4..e5c563823a5f67aea30587a22e0eabab063358fb 100644
(file)
--- a/
debug/libb43.py
+++ b/
debug/libb43.py
@@
-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