Skip to contentSkip to conversation

bin/bitbake: Only try and process an event_queue if it exists

PATCH New Richard Purdie 1 participant 1 message Mar 28, 2014

lore
Share & tools
lore
#0 lore raw

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.

---

bitbake/bin/bitbake +1 -1
index cd01992..45f56b3 100755
@@ -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: