BUG: Catch all exceptions, including NotImplementedError, when checking for number of CPUs in multi-processing.

This commit is contained in:
Stefan van der Walt
2012-05-21 19:20:20 -07:00
parent 34505fef46
commit 8f43ee7739
+1 -1
View File
@@ -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):