summaryrefslogtreecommitdiff
path: root/poezio/plugin_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/plugin_manager.py')
-rw-r--r--poezio/plugin_manager.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/poezio/plugin_manager.py b/poezio/plugin_manager.py
index 9e2a8084..8499cf51 100644
--- a/poezio/plugin_manager.py
+++ b/poezio/plugin_manager.py
@@ -266,17 +266,13 @@ class PluginManager(object):
completion function that completes the name of the plugins, from
all .py files in plugins_dir
"""
- try:
- names = set()
- for path_ in self.load_path:
- try:
- add = set(os.listdir(path_))
- names |= add
- except:
- pass
- except OSError as e:
- self.core.information('Completion failed: %s' % e, 'Error')
- return False
+ names = set()
+ for path_ in self.load_path:
+ try:
+ add = set(os.listdir(path_))
+ names |= add
+ except OSError:
+ pass
plugins_files = [name[:-3] for name in names if name.endswith('.py')
and name != '__init__.py' and not name.startswith('.')]
plugins_files.sort()