mq: loosen except clause when reading patch headers
authorIdan Kamara <idankk86@gmail.com>
Fri, 06 May 2011 18:45:12 +0300
changeset 14239 967be4bb42a7
parent 14238 d466d592e8cf
child 14240 28762bb767dc
mq: loosen except clause when reading patch headers
hgext/mq.py
--- a/hgext/mq.py	Fri May 06 13:04:24 2011 -0500
+++ b/hgext/mq.py	Fri May 06 18:45:12 2011 +0300
@@ -666,7 +666,7 @@
 
             try:
                 ph = patchheader(self.join(patchname), self.plainmode)
-            except:
+            except IOError:
                 self.ui.warn(_("unable to read %s\n") % patchname)
                 err = 1
                 break