Skip to content

Commit 476ab13

Browse files
committed
[JTH] logger instead of error in max cores available setting
1 parent 7a3d855 commit 476ab13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bluemath_tk/core/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def set_num_processors_to_use(self, num_processors: int) -> None:
508508
elif num_processors <= 0:
509509
raise ValueError("Number of processors must be greater than 0")
510510
elif (num_processors_available - num_processors) < 2:
511-
raise ValueError(
511+
self.logger.warning(
512512
"Number of processors requested is less than 2 processors available"
513513
)
514514

0 commit comments

Comments
 (0)