mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
BUG: Catch all exceptions, including NotImplementedError, when checking for number of CPUs in multi-processing.
This commit is contained in:
@@ -9,7 +9,7 @@ from skimage.util import img_as_ubyte
|
||||
try:
|
||||
import multiprocessing
|
||||
CPU_COUNT = multiprocessing.cpu_count()
|
||||
except ImportError:
|
||||
except:
|
||||
CPU_COUNT = 2
|
||||
|
||||
class GuiLockError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user