From 7f9cfa125af3ec50f22a89cf6c63827e30861270 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 10 Sep 2010 00:26:25 -0700 Subject: [PATCH] Make ebuild-ipc.py suppress IOError just like it does for EOFError when the buffer is non-empty. --- bin/ebuild-ipc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py index 21e5647f3..59ff735c9 100755 --- a/bin/ebuild-ipc.py +++ b/bin/ebuild-ipc.py @@ -88,11 +88,9 @@ class EbuildIpc(object): buf = array.array('B') try: buf.fromfile(input_file, self._BUFSIZE) - except EOFError as e: + except (EOFError, IOError) as e: if not buf: portage.util.writemsg("%s\n" % (e,), noiselevel=-1) - except IOError as e: - portage.util.writemsg("%s\n" % (e,), noiselevel=-1) rval = 2 -- 2.26.2