mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 13:18:42 +02:00
- catch PackageError()
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user