summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-12-09 23:15:06 +0000
committerJeremy Katz <katzj@redhat.com>2004-12-09 23:15:06 +0000
commitb8b0ba383d6392b3c0830ce22b2211c2eb3bca64 (patch)
treea7daa150a039b3965f303a8fdeb8b398d3facbc1 /fsset.py
parent67f97fa2c7d3dfb6d934de6fe6f008b3df6963bb (diff)
downloadanaconda-b8b0ba383d6392b3c0830ce22b2211c2eb3bca64.tar.gz
anaconda-b8b0ba383d6392b3c0830ce22b2211c2eb3bca64.tar.xz
anaconda-b8b0ba383d6392b3c0830ce22b2211c2eb3bca64.zip
2004-12-09 Jeremy Katz <katzj@redhat.com>
* fsset.py (getDevFD): Better error handling if we can't create the device (#142273)
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index 19fe06d7c..b20d7e2c3 100644
--- a/fsset.py
+++ b/fsset.py
@@ -2323,8 +2323,8 @@ def getDevFD(device):
fd = os.open(device, os.O_RDONLY)
except:
file = '/tmp/' + device
- isys.makeDevInode(device, file)
try:
+ isys.makeDevInode(device, file)
fd = os.open(file, os.O_RDONLY)
except:
return -1