mercurial/lock.py
changeset 705 574869103985
parent 515 03f27b1381f9
parent 704 5ca319a641e1
child 1062 6d5a62a549fa
--- 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):