mercurial/lock.py
changeset 704 5ca319a641e1
parent 515 03f27b1381f9
child 705 574869103985
--- a/mercurial/lock.py	Thu Jul 14 17:28:19 2005 +0100
+++ b/mercurial/lock.py	Thu Jul 14 22:51:47 2005 +0100
@@ -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):