* [PATCH] bin/bitbake: Only try and process an event_queue if it exists
@ 2014-03-28 17:07 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-03-28 17:07 UTC (permalink / raw)
To: bitbake-devel
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>
---
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index cd01992..45f56b3 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/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:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-28 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-28 17:07 [PATCH] bin/bitbake: Only try and process an event_queue if it exists Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.