diff mercurial/lock.py @ 705:574869103985

Merge with TAH manifest hash: 197e0d1a0d7376a9eb72381330462f06490ab821
author mpm@selenic.com
date Thu, 14 Jul 2005 22:56:55 -0800
parents 03f27b1381f9 5ca319a641e1
children 6d5a62a549fa
line wrap: on
line diff
--- a/mercurial/lock.py	Thu Jul 14 22:37:46 2005 -0800
+++ b/mercurial/lock.py	Thu Jul 14 22:56:55 2005 -0800
@@ -37,7 +37,7 @@
         try:
             util.makelock(str(pid), self.f)
             self.held = 1
-        except:
+        except (OSError, IOError):
             raise LockHeld(util.readlock(self.f))
 
     def release(self):