mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 05:38:43 +02:00
catch cpio errors
TODO: detect if returned file is XML with error code
This commit is contained in:
@@ -9,6 +9,8 @@ import signal
|
||||
from osc import oscerr
|
||||
from urllib2 import URLError, HTTPError
|
||||
from oscsslexcp import NoSecureSSLError
|
||||
from osc.util.cpio import CpioError
|
||||
|
||||
try:
|
||||
from M2Crypto.SSL.Checker import SSLVerificationError
|
||||
from M2Crypto.SSL import SSLError as SSLError
|
||||
@@ -166,4 +168,8 @@ def run(prg):
|
||||
print >>sys.stderr, e
|
||||
return 1
|
||||
|
||||
except CpioError, e:
|
||||
print >>sys.stderr, e
|
||||
return 1
|
||||
|
||||
# vim: sw=4 et
|
||||
|
Reference in New Issue
Block a user