From ad21f46418caa5ba432a79eab0b023f73732da80 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Mon, 27 Jun 2011 10:37:11 +0200 Subject: [PATCH] Catch Broken-PIPE Exception in zypper-log --- tools/zypper-log | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/zypper-log b/tools/zypper-log index 783dd83..e371130 100755 --- a/tools/zypper-log +++ b/tools/zypper-log @@ -5,7 +5,7 @@ # # Author: Dominik Heidler -import os, string, re, bz2, zlib, sys, time, argparse +import os, string, re, bz2, zlib, sys, time, argparse, errno filenamelen = 0 pidlen = 0 @@ -110,4 +110,8 @@ def main(): if __name__ == "__main__": - main() + try: + main() + except IOError, e: + if e.errno != errno.EPIPE: + raise -- 2.7.4