From 0835580d59dd69cbc9efcf2e037dd91b08f3991d Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Fri, 11 Apr 2008 10:49:43 +0000 Subject: [PATCH] Abort if meta_exists encounters an unexpected error (bnc#377693). The correct fix is to propagate this to commandline.py and exit() there. --- osc/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osc/core.py b/osc/core.py index 6ff34286..c63a4d61 100755 --- a/osc/core.py +++ b/osc/core.py @@ -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