mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 10:36:17 +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 oscsslexcp import NoSecureSSLError
|
||||
from osc.util.cpio import CpioError
|
||||
from osc.util.packagequery import PackageError
|
||||
|
||||
try:
|
||||
from M2Crypto.SSL.Checker import SSLVerificationError
|
||||
@ -172,4 +173,8 @@ def run(prg):
|
||||
print >>sys.stderr, e
|
||||
return 1
|
||||
|
||||
except PackageError, e:
|
||||
print >>sys.stderr, e.msg
|
||||
return 1
|
||||
|
||||
# vim: sw=4 et
|
||||
|
Loading…
Reference in New Issue
Block a user