1
0
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:
Ludwig Nussel
2010-05-06 14:24:06 +02:00
parent 05e0cb620b
commit 7024449cd8
2 changed files with 9 additions and 1 deletions

View File

@@ -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