mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- catch PackageError()
This commit is contained in:
parent
2f4de7c63b
commit
1975e3cf85
@ -10,6 +10,7 @@ from osc import oscerr
|
|||||||
from urllib2 import URLError, HTTPError
|
from urllib2 import URLError, HTTPError
|
||||||
from oscsslexcp import NoSecureSSLError
|
from oscsslexcp import NoSecureSSLError
|
||||||
from osc.util.cpio import CpioError
|
from osc.util.cpio import CpioError
|
||||||
|
from osc.util.packagequery import PackageError
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from M2Crypto.SSL.Checker import SSLVerificationError
|
from M2Crypto.SSL.Checker import SSLVerificationError
|
||||||
@ -172,4 +173,8 @@ def run(prg):
|
|||||||
print >>sys.stderr, e
|
print >>sys.stderr, e
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
except PackageError, e:
|
||||||
|
print >>sys.stderr, e.msg
|
||||||
|
return 1
|
||||||
|
|
||||||
# vim: sw=4 et
|
# vim: sw=4 et
|
||||||
|
Loading…
Reference in New Issue
Block a user