summaryrefslogtreecommitdiffstats
path: root/pcmcia.py
diff options
context:
space:
mode:
Diffstat (limited to 'pcmcia.py')
-rwxr-xr-xpcmcia.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pcmcia.py b/pcmcia.py
index 3805f95c5..61ccc587c 100755
--- a/pcmcia.py
+++ b/pcmcia.py
@@ -7,7 +7,10 @@ def pcicType(test = 0):
if not os.access(loc, os.X_OK):
loc = "/usr/sbin/probe"
- result = iutil.execWithCapture(loc, [ loc ])
+ try:
+ result = iutil.execWithCapture(loc, [ loc ])
+ except RuntimeError:
+ return None
if (string.find(result, "TCIC-2 probe: not found") != -1):
return None