Raise ModuleNotFoundException on failure to find_module()
This commit is contained in:
parent
dc9cd2869f
commit
928f2f304d
1 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,9 @@ class ModuleManager(object):
|
|||
else:
|
||||
path = "%s.py" % path
|
||||
|
||||
if not os.path.exists(path):
|
||||
raise ModuleNotFoundException(name)
|
||||
|
||||
return self.define_module(type, path)
|
||||
|
||||
def _module_name(self, path: str) -> str:
|
||||
|
|
Loading…
Reference in a new issue