summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-26 12:20:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-26 12:20:14 +0000
commit5f866ac84f72699139be1d98f010017c7b71f0f7 (patch)
treee05ab35f9bec33a2ea67cb97062b24f04e67da15 /bitbake
parent6a0abfa82dc11957bf803aeda9054ace85702f50 (diff)
downloadopenembedded-core-5f866ac84f72699139be1d98f010017c7b71f0f7.tar.gz
openembedded-core-5f866ac84f72699139be1d98f010017c7b71f0f7.tar.bz2
openembedded-core-5f866ac84f72699139be1d98f010017c7b71f0f7.tar.xz
openembedded-core-5f866ac84f72699139be1d98f010017c7b71f0f7.zip
bitbake/unlockfile: Fix exception handling
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index f2a79bd63..a8da672b5 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -450,7 +450,7 @@ def unlockfile(lf):
# removing the lockfile. Attempt this, ignore failures.
fcntl.flock(lf.fileno(), fcntl.LOCK_EX|fcntl.LOCK_NB)
os.unlink(lf.name)
- except IOError, OSError:
+ except (IOError, OSError):
pass
fcntl.flock(lf.fileno(), fcntl.LOCK_UN)
lf.close()