diff options
author | Kali Kaneko <kali@leap.se> | 2015-06-10 14:52:11 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-06-15 14:25:24 -0400 |
commit | c9f07ff0041fac8b5124a15a8053bb9cc9f03bb2 (patch) | |
tree | f31bb84825c157f3ae1a0b898b51180a65f5d38f | |
parent | e91c6b2daf15d849de5a5fd72436f9f88505250e (diff) |
[bug] catch missing section header error
-rw-r--r-- | src/leap/common/plugins.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |