diff hgext/mq.py @ 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 68ade2a6b30a
children 45f7aa35f2fd
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