From b4acd703367ea06485da5a8c4d1d675983921072 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sun, 16 Oct 2011 22:40:42 +0300 Subject: [PATCH] catch the error in the plugins manifest file --- src/plugins/pluginmanager.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index 18e4765c3..875c64356 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -480,6 +480,14 @@ class PluginManager(object): # all fields are required log.debug('%s : %s' % (module_attr_name, '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