changeset 18975845c562 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=18975845c562
description: catch the error in the plugins manifest file

diffstat:

 src/plugins/pluginmanager.py |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r a5e5b7525fb0 -r 18975845c562 src/plugins/pluginmanager.py
--- a/src/plugins/pluginmanager.py      Sun Oct 16 11:14:40 2011 +0200
+++ b/src/plugins/pluginmanager.py      Sun Oct 16 22:40:42 2011 +0300
@@ -480,6 +480,14 @@
                     # 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
 
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to