From: Cliff Brake <[email protected]>

causes exceptions to not be handled after the finally statement

Signed-off-by: Cliff Brake <[email protected]>
---
 bin/bitbake |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/bin/bitbake b/bin/bitbake
index a6ac45d..9e1a929 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -180,6 +180,8 @@ Default BBFILES are the .bb files in the current 
directory.""")
     else:
         ui = "knotty"
 
+    return_value = None
+
     try:
         # Dynamically load the UI based on the ui name. Although we
         # suggest a fixed set this allows you to have flexibility in which
@@ -195,9 +197,9 @@ Default BBFILES are the .bb files in the current 
directory.""")
         except Exception, e:
             print "FATAL: Unable to start to '%s' UI: %s" % (ui, e)
             raise
-    finally:
-        serverConnection.terminate()
-        return return_value
+
+    serverConnection.terminate()
+    return return_value
 
 if __name__ == "__main__":
     ret = main()
-- 
1.7.0.4

_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to