]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/unlockfile: Fix exception handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 26 Jan 2011 12:20:14 +0000 (12:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 26 Jan 2011 12:20:14 +0000 (12:20 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/utils.py

index f2a79bd63025c8f90b29b49867483c917e7dca73..a8da672b51b2d6c3d08dcbf243a43ee1ecf46377 100644 (file)
@@ -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()