From c9f07ff0041fac8b5124a15a8053bb9cc9f03bb2 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 10 Jun 2015 14:52:11 -0400 Subject: [bug] catch missing section header error --- src/leap/common/plugins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/leap/common/plugins.py b/src/leap/common/plugins.py index bf0cd48..04152f9 100644 --- a/src/leap/common/plugins.py +++ b/src/leap/common/plugins.py @@ -42,7 +42,8 @@ def _get_extra_pluggable_modules(): try: modules = eval( config.get('plugins', 'extra_pluggable_modules'), {}, {}) - except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): + except (ConfigParser.NoSectionError, ConfigParser.NoOptionError, + ConfigParser.MissingSectionHeaderError): modules = [] return modules -- cgit v1.2.3