Skip to content
Snippets Groups Projects
Commit d77d9f8a authored by Hoang Tran's avatar Hoang Tran
Browse files

[IMP] core: make sure addon dir exist before loading


Loading an non-existing addon directory affect all other modules to be
not loaded. This commit makes sure the path exist before proceed to
explore all the modules under that directory.

closes odoo/odoo#104585

Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
parent 7cd2207d
No related branches found
No related tags found
No related merge requests found
......@@ -421,6 +421,9 @@ def get_modules():
plist = []
for ad in odoo.addons.__path__:
if not os.path.exists(ad):
_logger.warning("addons path does not exist: %s", ad)
continue
plist.extend(listdir(ad))
return list(set(plist))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment