1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-11 17:54:06 +02:00

Abort if meta_exists encounters an unexpected error (bnc#377693).

The correct fix is to propagate this to commandline.py and exit() there.
This commit is contained in:
Michal Marek
2008-04-11 10:49:43 +00:00
parent e9176c7513
commit 0835580d59

View File

@@ -1727,6 +1727,9 @@ def edit_meta(metatype,
template_args, template_args,
create_new=True, create_new=True,
apiurl=apiurl) apiurl=apiurl)
if not data:
# meta_exists encountered an error
sys.exit(1)
if edit: if edit:
change_is_required = True change_is_required = True