Fix generic import exception message

This commit is contained in:
fchollet 2015-04-05 16:58:45 -07:00
parent ef7f89ec71
commit f6cd4c8314

@ -6,7 +6,7 @@ def get_from_module(identifier, module_params, module_name, instantiate=False):
if type(identifier) is str:
res = module_params.get(identifier)
if not res:
raise Exception('Invalid', module_name, ': ' + identifier)
raise Exception('Invalid ' + str(module_name) + ': ' + str(identifier))
if instantiate:
return res()
else: