Fix generic import exception message
This commit is contained in:
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:
|
||||
|
Loading…
Reference in New Issue
Block a user