Use empty string as fallback value for module path
The module path is used later to join path so it must be a string. Closes #13229
This commit is contained in:
1 parent
e45ff0098b
commit
928ca1dae1
1 file changed
+1
-1
@@ -67,7 +67,7 @@ def find_path(name, subdir='modules', _test=os.path.isfile):
|
||||
try:
|
||||
module_name, module_path = name.split(os.sep, 1)
|
||||
except ValueError:
|
||||
module_name, module_path = name, None
|
||||
module_name, module_path = name, ''
|
||||
if module_name in {'ir', 'res', 'tests'}:
|
||||
path = secure_join(root_path, module_name, module_path)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user