]> err.no Git - dak/commitdiff
p-n
authorJoerg Jaspert <joerg@debian.org>
Thu, 14 May 2009 21:53:02 +0000 (23:53 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 14 May 2009 21:53:02 +0000 (23:53 +0200)
ignore an EPIPE at a pretty annoying place.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/process_new.py

index 65b550bb9aff4aed91d07550806d9a37c05118b9..98ad2bd3c05e0aa217f63b50d421aa2d834c9e0b 100755 (executable)
@@ -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)