ignore an EPIPE at a pretty annoying place.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
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)