[FIX] module: do not crash in case of not found module

bzr revid: mat@openerp.com-20140505121840-f84u36mng3p1gstn
This commit is contained in:
Martin Trigaux 2014-05-05 14:18:40 +02:00
parent 5f708d1a21
commit 5e406734ab
1 changed files with 1 additions and 1 deletions

View File

@ -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):