diff --git a/src/openclpow.py b/src/openclpow.py index 894a5b77..b0be542c 100644 --- a/src/openclpow.py +++ b/src/openclpow.py @@ -20,11 +20,12 @@ vendors = [] hash_dt = None try: - import numpy import pyopencl as cl -except: + import numpy +except ImportError: libAvailable = False + def initCL(): global ctx, queue, program, hash_dt, libAvailable if libAvailable is False: