summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
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 10:10:37 +0100
commitadba3edca22b46235bbeb02bbff1eeaa09bdeedf (patch)
tree9d0b984bb5de44d484b1f8ee7ae319317b57b2c9 /bitbake/bin
parent87fd1846396db109eee352a16b462c8958823742 (diff)
downloadpoky-adba3edca22b46235bbeb02bbff1eeaa09bdeedf.tar.gz
bitbake: 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. (Bitbake rev: db4d80b5c2d32117cdf06333b9627202998b1512) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index cd01992bae..45f56b3d50 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -222,7 +222,7 @@ def start_server(servermodule, configParams, configuration, features):
222 server.saveConnectionDetails() 222 server.saveConnectionDetails()
223 except Exception as e: 223 except Exception as e:
224 exc_info = sys.exc_info() 224 exc_info = sys.exc_info()
225 while True: 225 while hasattr(server, "event_queue"):
226 try: 226 try:
227 import queue 227 import queue
228 except ImportError: 228 except ImportError: