From 5e406734abd0336503548803fd53ea44bc859869 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 5 May 2014 14:18:40 +0200 Subject: [PATCH] [FIX] module: do not crash in case of not found module bzr revid: mat@openerp.com-20140505121840-f84u36mng3p1gstn --- openerp/modules/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/modules/module.py b/openerp/modules/module.py index 82e86e83ce2..0ccb2865796 100644 --- a/openerp/modules/module.py +++ b/openerp/modules/module.py @@ -177,7 +177,7 @@ def load_information_from_description_file(module, mod_path=None): if not mod_path: mod_path = get_module_path(module) - terp_file = opj(mod_path, '__openerp__.py') + terp_file = mod_path and opj(mod_path, '__openerp__.py') or False if terp_file: info = {} if os.path.isfile(terp_file):