changeset 7507:8e76e9f67cb3

patch: catch only IOError from makedirs()
author Patrick Mezard <pmezard@gmail.com>
date Thu, 11 Dec 2008 22:59:35 +0100
parents abd2bc899d86
children b3ae5d52c405 0d488f7f321d
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Thu Dec 11 22:59:35 2008 +0100
+++ b/mercurial/patch.py	Thu Dec 11 22:59:35 2008 +0100
@@ -32,7 +32,7 @@
     if dstdir and not os.path.isdir(dstdir):
         try:
             os.makedirs(dstdir)
-        except:
+        except IOError:
             raise util.Abort(
                 _("cannot create %s: unable to create destination directory")
                 % dst)