From cc095d57450c4828e855608c398cc7695283a277 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 14 May 2009 23:53:02 +0200 Subject: [PATCH] p-n ignore an EPIPE at a pretty annoying place. Signed-off-by: Joerg Jaspert --- dak/process_new.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dak/process_new.py b/dak/process_new.py index 65b550bb..98ad2bd3 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -680,7 +680,14 @@ def do_new(): prompt += "Edit overrides, Check, Manual reject, Note edit, Prod, [S]kip, Quit ?" while prompt.find(answer) == -1: - answer = utils.our_raw_input(prompt) + try: + answer = utils.our_raw_input(prompt) + except IOError, e: + if e.errno == errno.EPIPE: + utils.warn("[process_new] Caught EPIPE; skipping.") + pass + else: + raise m = re_default_answer.search(prompt) if answer == "": answer = m.group(1) -- 2.39.5