X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=debug%2Flibb43.py;h=e5c563823a5f67aea30587a22e0eabab063358fb;hb=29d379ca5d8011793052099783fd4bd70b4a368f;hp=671ad2c6f173a141bb2bbffa984c6200f5c929e4;hpb=8bbba3f44abed4ad1174032c8e03ee60b2fae2f0;p=b43-tools.git diff --git a/debug/libb43.py b/debug/libb43.py index 671ad2c..e5c5638 100644 --- 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