From fca09f8140078770440630320f6694d168981e66 Mon Sep 17 00:00:00 2001 From: Ludovico Bianchi Date: Fri, 29 Mar 2024 13:30:06 -0500 Subject: [PATCH] Convert logging exception to warning on Dask get_client() failure (#1215) (cherry picked from commit ec385e83e63711420caad1b8feac8046304f6366) --- foqus_lib/framework/sdoe/sdoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foqus_lib/framework/sdoe/sdoe.py b/foqus_lib/framework/sdoe/sdoe.py index c419563e7..57148fed2 100644 --- a/foqus_lib/framework/sdoe/sdoe.py +++ b/foqus_lib/framework/sdoe/sdoe.py @@ -98,7 +98,7 @@ def run(config_file: str, nd: int, test: bool = False) -> Tuple[Dict, Dict, floa get_client() use_dask = True except ValueError: - logging.getLogger("foqus." + __name__).exception( + logging.getLogger("foqus." + __name__).warning( "Unable to load Dask client, continuing without it using original algorithms" ) pass