changeset 9094:89ae64a4e2ec

transaction: fix uncaught ENOENT (issue1724) The opener raises an IOError on errors where transaction expects an OSError.
author Henrik Stuart <henrik.stuart@edlund.dk>
date Tue, 07 Jul 2009 19:24:52 +0200
parents 0b2b269ba3d0
children 89fd11257d75
files mercurial/transaction.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)