# HG changeset patch
# User Patrick Mezard <pmezard@gmail.com>
# Date 1229032775 -3600
#      Thu Dec 11 22:59:35 2008 +0100
# Node ID 8e76e9f67cb3414f9b7042435758d375dc505ea2
# Parent  abd2bc899d866e39b7c2b7e650887da5377588ba
patch: catch only IOError from makedirs()

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -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)