1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-05 20:58:42 +02:00

- globally ignore broken pipe

This commit is contained in:
Marcus Huewe
2011-01-22 16:41:06 +01:00
parent 1491dd4f4b
commit 09b323c2d3
2 changed files with 10 additions and 8 deletions

View File

@@ -126,6 +126,12 @@ def run(prg):
print >>sys.stderr, 'Failed to reach a server:\n', e.reason
return 1
except IOError, e:
# ignore broken pipe
if e.errno != 32:
raise
return 1
except (oscerr.ConfigError, oscerr.NoConfigfile), e:
print >>sys.stderr, e.msg
return 1
@@ -160,6 +166,7 @@ def run(prg):
'and the following traceback to it:'
print >>sys.stderr, e.msg
traceback.print_exc(file=sys.stderr)
return 1
except oscerr.PackageError, e:
print >>sys.stderr, e.msg