From 2aab175d392189270e201241e5fd970f31f665e4 Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Fri, 31 May 2024 14:13:10 +0100 Subject: [PATCH] Change device connect error message --- src/blueapi/core/context.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blueapi/core/context.py b/src/blueapi/core/context.py index af5a99315..219e736b7 100644 --- a/src/blueapi/core/context.py +++ b/src/blueapi/core/context.py @@ -111,7 +111,9 @@ def with_dodal_module(self, module: ModuleType, **kwargs) -> None: # If exceptions have occurred, we log them but we do not make blueapi # fall over if len(exceptions) > 0: - LOGGER.warning(f"{len(exceptions)} device(s) failed to connect") + LOGGER.warning( + f"{len(exceptions)} exceptions occurred while instantiating devices" + ) LOGGER.exception(NotConnected(exceptions)) def plan(self, plan: PlanGenerator) -> PlanGenerator: