1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01: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,
create_new=True,
apiurl=apiurl)
if not data:
# meta_exists encountered an error
sys.exit(1)
if edit:
change_is_required = True