Merge pull request #104 from stevschmid/patch-1
Fix crash when module is missing
This commit is contained in:
@@ -58,7 +58,7 @@ for mod, msg in [('numpy', 'HyBi protocol will be slower'),
|
||||
globals()[mod] = __import__(mod)
|
||||
except ImportError:
|
||||
globals()[mod] = None
|
||||
self.msg("WARNING: no '%s' module, %s", mod, msg)
|
||||
print("WARNING: no '%s' module, %s" % (mod, msg))
|
||||
if multiprocessing and sys.platform == 'win32':
|
||||
# make sockets pickle-able/inheritable
|
||||
import multiprocessing.reduction
|
||||
|
||||
Reference in New Issue
Block a user