mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 09:16:14 +01:00
- use EPIPE (as suggested by mls)
This commit is contained in:
parent
dda670f3de
commit
497f97fc85
@ -6,6 +6,7 @@
|
||||
import os.path
|
||||
import sys
|
||||
import signal
|
||||
import errno
|
||||
from osc import oscerr
|
||||
from urllib2 import URLError, HTTPError
|
||||
from oscsslexcp import NoSecureSSLError
|
||||
@ -128,7 +129,7 @@ def run(prg):
|
||||
|
||||
except IOError, e:
|
||||
# ignore broken pipe
|
||||
if e.errno != 32:
|
||||
if e.errno != errno.EPIPE:
|
||||
raise
|
||||
return 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user