[FIX] addons: tried to remove a non existing key in dict

bzr revid: olt@tinyerp.com-20100922123135-qmh4hpfgr9iexs03
This commit is contained in:
olt@tinyerp.com 2010-09-22 14:31:35 +02:00
parent 703708c614
commit ba4f8ad223
1 changed files with 2 additions and 1 deletions

View File

@ -761,7 +761,8 @@ def _check_module_names(cr, module_names):
mod_names = set(module_names)
if 'base' in mod_names:
# ignore dummy 'all' module
mod_names.remove('all')
if 'all' in mod_names:
mod_names.remove('all')
if mod_names:
cr.execute("SELECT count(id) AS count FROM ir_module_module WHERE name in %s", (tuple(mod_names),))
if cr.dictfetchone()['count'] != len(mod_names):