From dd9d1cb49fdbb0faa695a6e9f503e82d404dcc88 Mon Sep 17 00:00:00 2001 From: "Dr. Peter Poeml" Date: Thu, 12 Jun 2008 12:12:29 +0000 Subject: [PATCH] osc build: handle exception when getting buildinfo fails, for cases != 404 --- osc/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/build.py b/osc/build.py index ae2cb741..05f0abd2 100644 --- a/osc/build.py +++ b/osc/build.py @@ -301,6 +301,8 @@ def main(opts, argv): print >>sys.stderr, 'The project \'%s\' does not exists - please ' \ 'rerun with \'--alternative-project \'' % prj sys.exit(1) + else: + raise bi_file.write(bi_text) bi_file.flush()