transaction: fix uncaught ENOENT (issue1724)
authorHenrik Stuart <henrik.stuart@edlund.dk>
Tue, 07 Jul 2009 19:24:52 +0200
changeset 9094 89ae64a4e2ec
parent 9093 0b2b269ba3d0
child 9095 89fd11257d75
transaction: fix uncaught ENOENT (issue1724) The opener raises an IOError on errors where transaction expects an OSError.
mercurial/transaction.py
--- a/mercurial/transaction.py	Thu Jul 09 20:49:02 2009 +0200
+++ b/mercurial/transaction.py	Tue Jul 07 19:24:52 2009 +0200
@@ -35,7 +35,7 @@
             try:
                 fn = opener(f).name
                 os.unlink(fn)
-            except OSError, inst:
+            except IOError, inst:
                 if inst.errno != errno.ENOENT:
                     raise
     os.unlink(journal)