mercurial/commands.py
changeset 770 b3820ce0e88a
parent 766 b444a7e053f1
child 771 0de223012086
child 791 040655ea0cc4
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -436,7 +436,7 @@ def clone(ui, source, dest=None, **opts)
                       copyfile)
         try:
             os.unlink(os.path.join(dest, ".hg", "dirstate"))
-        except IOError:
+        except OSError:
             pass
 
         repo = hg.repository(ui, dest)