From: Joerg Jaspert Date: Thu, 14 May 2009 21:53:02 +0000 (+0200) Subject: p-n X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc095d57450c4828e855608c398cc7695283a277;p=dak p-n ignore an EPIPE at a pretty annoying place. Signed-off-by: Joerg Jaspert --- 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)