diff mercurial/transaction.py @ 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 c8e81f557da7
children 8a4da1388553
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)