Skip to content

Commit

Permalink
Changed loader
Browse files Browse the repository at this point in the history
  • Loading branch information
blankjul committed Nov 9, 2018
1 parent 0a50391 commit f7009c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pymoo/util/function_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ def get_instance():
def load(self, module, func_name=None):

if self.cythonize:
vals = importlib.import_module('pymoo.cython.%s_cython' % module)

try:
vals = importlib.import_module('pymoo.cython.%s_cython' % module)
except Exception as e:
print(e)
vals = importlib.import_module('pymoo.cython.%s' % module)

else:
vals = importlib.import_module('pymoo.cython.%s' % module)

Expand Down

0 comments on commit f7009c3

Please sign in to comment.