From 0d2bc8f3aee927ae527a6973c85e7d148ee18b82 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 12 Oct 2011 17:58:18 +0200 Subject: [PATCH] [FIX] modules.graph: avoid crash when a module has been deleted from the filesystem bzr revid: odo@openerp.com-20111012155818-u07arzkokf9zshr0 --- openerp/modules/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/modules/graph.py b/openerp/modules/graph.py index 539dda25b50..7b302e99f4c 100644 --- a/openerp/modules/graph.py +++ b/openerp/modules/graph.py @@ -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))