bin/bitbake: Only try and process an event_queue if it exists
PATCH 1/1 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 <[email protected]>
---
bitbake/bin/bitbake +1 -1
@@ -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: