changeset 14239:967be4bb42a7

mq: loosen except clause when reading patch headers
author Idan Kamara <idankk86@gmail.com>
date Fri, 06 May 2011 18:45:12 +0300
parents d466d592e8cf
children 28762bb767dc
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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