1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-06 09:19:19 +02:00

- renamed "RuntimeError" to "ExtRuntimeError" to avoid confusion with python's "RuntimeError" class

just a "cosmetic" changes
This commit is contained in:
Marcus Huewe
2010-08-16 16:27:00 +02:00
parent 03ad610caf
commit e209766084
4 changed files with 8 additions and 8 deletions

View File

@@ -2932,7 +2932,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
msg = edit_message()
try:
Project(arg).commit(msg=msg, validators=validators, verbose_validation=verbose_validation)
except oscerr.RuntimeError, e:
except oscerr.ExtRuntimeError, e:
print >>sys.stderr, "ERROR: source_validator failed", e
return 1
args.remove(arg)
@@ -2983,13 +2983,13 @@ Please submit there instead, or use --nodevelproject to force direct submission.
for prj, packages in prj_paths.iteritems():
try:
Project(prj).commit(tuple(packages), msg=msg, files=files, validators=validators, verbose_validation=verbose_validation)
except oscerr.RuntimeError, e:
except oscerr.ExtRuntimeError, e:
print >>sys.stderr, "ERROR: source_validator failed", e
return 1
for pac in single_paths:
try:
Package(pac).commit(msg, validators=validators, verbose_validation=verbose_validation)
except oscerr.RuntimeError, e:
except oscerr.ExtRuntimeError, e:
print >>sys.stderr, "ERROR: source_validator failed", e
return 1
else: