summaryrefslogtreecommitdiffstats
path: root/bin/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-28 17:07:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-30 09:51:27 +0100
commitdb4d80b5c2d32117cdf06333b9627202998b1512 (patch)
tree25e2b60ade356a95bbe718d754803b9500f9ad46 /bin/bitbake
parent59f2f33440449c586c23dd3a192698a37aaf0595 (diff)
downloadbitbake-contrib-db4d80b5c2d32117cdf06333b9627202998b1512.tar.gz
bitbake-contrib-db4d80b5c2d32117cdf06333b9627202998b1512.tar.bz2
bitbake-contrib-db4d80b5c2d32117cdf06333b9627202998b1512.zip
bin/bitbake: Only try and process an event_queue if it exists
The connection may have failed before the event queue has been setup. Handle this correctly in the exception handler. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-xbin/bitbake2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bitbake b/bin/bitbake
index cd01992bae..45f56b3d50 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -222,7 +222,7 @@ def start_server(servermodule, configParams, configuration, features):
server.saveConnectionDetails()
except Exception as e:
exc_info = sys.exc_info()
- while True:
+ while hasattr(server, "event_queue"):
try:
import queue
except ImportError: