From b8b0ba383d6392b3c0830ce22b2211c2eb3bca64 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Thu, 9 Dec 2004 23:15:06 +0000 Subject: 2004-12-09 Jeremy Katz * fsset.py (getDevFD): Better error handling if we can't create the device (#142273) --- fsset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fsset.py') 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 -- cgit