Skip to content

Commit

Permalink
Convert logging exception to warning on Dask get_client() failure (#1215
Browse files Browse the repository at this point in the history
)

(cherry picked from commit ec385e8)
  • Loading branch information
lbianchi-lbl committed Mar 29, 2024
1 parent 4d277e9 commit fca09f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foqus_lib/framework/sdoe/sdoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fca09f8

Please sign in to comment.