Skip to content
Snippets Groups Projects
Commit 0a2458c6 authored by Alexander Cherniuk's avatar Alexander Cherniuk
Browse files

A better fix for nonexistent plugins directories.

parent 07af278d
No related branches found
No related tags found
No related merge requests found
......@@ -101,9 +101,7 @@ class PluginManager(object):
'''
for path in gajim.PLUGINS_DIRS:
pc = PluginManager.scan_dir_for_plugins(path)
if pc:
self.add_plugins(pc)
self.add_plugins(pc)
self._activate_all_plugins_from_global_config()
@log_calls('PluginManager')
......@@ -400,7 +398,7 @@ class PluginManager(object):
fields = ('name', 'short_name', 'version', 'description', 'authors',
'homepage')
if not os.path.isdir(path):
return
return plugins_found
dir_list = os.listdir(path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment