Philipp Hörist pushed to branch gajim_1.1 at gajim / gajim

Commits:
ec05b1a4 by Philipp Hörist at 2018-10-13T12:14:28Z
Catch exceptions when loading plugins

- - - - -


1 changed file:

- gajim/plugins/pluginmanager.py


Changes:

=====================================
gajim/plugins/pluginmanager.py
=====================================
@@ -179,7 +179,12 @@ class PluginManager(metaclass=Singleton):
         :todo: what about adding plug-ins that are already added? Module reload
         and adding class from reloaded module or ignoring adding plug-in?
         '''
-        plugin = plugin_class()
+        try:
+            plugin = plugin_class()
+        except Exception:
+            log.exception('Error while loading a plugin')
+            return
+
         if plugin not in self.plugins:
             if not self._plugin_has_entry_in_global_config(plugin):
                 self._create_plugin_entry_in_global_config(plugin)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/ec05b1a47e8f63477175b66d3120a3a977b4e5af

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/ec05b1a47e8f63477175b66d3120a3a977b4e5af
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to