summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-05-13 21:49:16 +0000
committerMatt Wilson <msw@redhat.com>2002-05-13 21:49:16 +0000
commit2d198d3e3433eb785ebdcb9300d5bda7621e7511 (patch)
tree1c6240ef9830181a74db5eabb70b9e11e2860cd4 /isys
parent5f34727ebf9dac1d11ee47e047ca6055ff2c28a9 (diff)
downloadanaconda-2d198d3e3433eb785ebdcb9300d5bda7621e7511.tar.gz
anaconda-2d198d3e3433eb785ebdcb9300d5bda7621e7511.tar.xz
anaconda-2d198d3e3433eb785ebdcb9300d5bda7621e7511.zip
don't throw away our exception, raise it after closing the fd
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 6cb874901..780967314 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -79,8 +79,8 @@ def raidsb(mdDevice):
rc = 0
try:
rc = _isys.getraidsb(fd)
- except:
- pass
+ finally:
+ os.close(fd)
os.close(fd)
return rc