[FIX] modules.graph: avoid crash when a module has been deleted from the filesystem

bzr revid: odo@openerp.com-20111012155818-u07arzkokf9zshr0
This commit is contained in:
Olivier Dony 2011-10-12 17:58:18 +02:00
parent abf626b644
commit 0d2bc8f3ae
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class Graph(dict):
# NOTE The call to load_information_from_description_file is already
# done by db.initialize, so it is possible to not do it again here.
info = openerp.modules.module.load_information_from_description_file(module)
if info['installable']:
if info and info['installable']:
packages.append((module, info)) # TODO directly a dict, like in get_modules_with_version
else:
logger.notifyChannel('init', netsvc.LOG_WARNING, 'module %s: not installable, skipped' % (module))