python2&3 import error
@@ -116,7 +116,7 @@ def select_module(module_name, type_str, lookup_table):
module, class_name = module_name.rsplit('.', 1)
the_module = getattr(importlib.import_module(module), class_name)
return the_module
- except (AttributeError, ValueError):
+ except (AttributeError, ValueError, ImportError):
# Two possibilities: a typo for a lookup table entry
# or a non-existing module
dists = {k: edit_distance(k, module_name) for k in lookup_table.keys()}
