mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 10:46:15 +01:00
Merge commit 'refs/pull/986/head' of github.com:openSUSE/osc
Do not fail with a traceback in case of a config error.
This commit is contained in:
commit
c91e2d5c67
@ -17,6 +17,7 @@ from .oscsslexcp import NoSecureSSLError
|
||||
from osc.util.cpio import CpioError
|
||||
from osc.util.packagequery import PackageError
|
||||
from osc.util.helper import decode_it
|
||||
from osc.OscConfigParser import configparser
|
||||
|
||||
try:
|
||||
from M2Crypto.SSL.Checker import SSLVerificationError
|
||||
@ -154,6 +155,8 @@ def run(prg, argv=None):
|
||||
print(e, file=sys.stderr)
|
||||
except (oscerr.ConfigError, oscerr.NoConfigfile) as e:
|
||||
print(e.msg, file=sys.stderr)
|
||||
except configparser.Error as e:
|
||||
print(e.message, file=sys.stderr)
|
||||
except oscerr.OscIOError as e:
|
||||
print(e.msg, file=sys.stderr)
|
||||
if getattr(prg.options, 'debug', None) or \
|
||||
|
Loading…
Reference in New Issue
Block a user