cooker.py: no bb.fatal() for pr server
PATCH 1/1 cooker.py: no bb.fatal() for pr server
Calls to bb.fatal() will block at this point of initialization.
Signed-off-by Joe Slater <[email protected]>
--- lib/bb/cooker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/cooker.py +2 -1
@@ -383,7 +383,8 @@ class BBCooker: try: self.prhost = prserv.serv.auto_start(self.data) except prserv.serv.PRServiceConfigError as e: - bb.fatal("Unable to start PR Server, exitting") + logger.error("Unable to start PR Server. Continuing anyway...") + self.prhost = None def enableDataTracking(self): self.configuration.tracking = True
Signature · 1 line
2.7.4
Quoted 12 lines · Joe Slater
Calls to
bb.fatal()will block at this point of initialization.Signed-off-by Joe Slater <[email protected]>--- lib/bb/cooker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)lib/bb/cooker.py +0
-0
lib/bb/cooker.py class BBCooker: · line 388
Quoted 7 lines
lib/bb/cooker.py +2
-1@@ -383,7 +383,8 @@ class BBCooker: try: self.prhost = prserv.serv.auto_start(self.data) except prserv.serv.PRServiceConfigError as e: - bb.fatal("Unable to start PR Server, exitting") + logger.error("Unable to start PR Server. Continuing anyway...") + self.prhost = None
Shouldn't we fix the blocking?
Cheers,
Richard