mercurial/posix.py
changeset 14004 97ed99d1f419
parent 13986 9c374cf76b7d
child 14165 78bdfc756908
--- a/mercurial/posix.py	Sun Apr 24 17:52:46 2011 -0500
+++ b/mercurial/posix.py	Sat Apr 23 00:51:25 2011 +0300
@@ -59,7 +59,7 @@
             os.unlink(f)
             try:
                 os.symlink(data, f)
-            except:
+            except OSError:
                 # failed to make a link, rewrite file
                 fp = open(f, "w")
                 fp.write(data)