diff -r b4ac1e2cd38c -r 4c4324476be6 hgext/mq.py --- a/hgext/mq.py Tue Nov 25 18:45:08 2008 -0800 +++ b/hgext/mq.py Wed Nov 26 18:23:35 2008 +0100 @@ -1583,7 +1583,7 @@ text = sys.stdin.read() else: text = url.open(self.ui, filename).read() - except IOError: + except (OSError, IOError): raise util.Abort(_("unable to read %s") % filename) if not patchname: patchname = normname(os.path.basename(filename))