catch the error in the plugins manifest file

This commit is contained in:
Denis Fomin 2011-10-16 22:40:42 +03:00
parent d00eb5d112
commit b4acd70336
1 changed files with 8 additions and 0 deletions

View File

@ -480,6 +480,14 @@ class PluginManager(object):
# all fields are required # all fields are required
log.debug('%s : %s' % (module_attr_name, log.debug('%s : %s' % (module_attr_name,
'wrong manifest file. all fields are required!')) 'wrong manifest file. all fields are required!'))
except ConfigParser.NoSectionError, type_error:
# info section are required
log.debug('%s : %s' % (module_attr_name,
'wrong manifest file. info section are required!'))
except ConfigParser.MissingSectionHeaderError, type_error:
# info section are required
log.debug('%s : %s' % (module_attr_name,
'wrong manifest file. section are required!'))
return plugins_found return plugins_found