From: Dominik Heidler Date: Mon, 27 Jun 2011 08:37:11 +0000 (+0200) Subject: Catch Broken-PIPE Exception in zypper-log X-Git-Tag: 1.6.11~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad21f46418caa5ba432a79eab0b023f73732da80;p=platform%2Fupstream%2Fzypper.git Catch Broken-PIPE Exception in zypper-log --- 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