actually skip bad/broken module files found

This commit is contained in:
Brian Coca 2016-08-04 11:32:08 -04:00
parent 98c149859a
commit b0786a1845

View file

@ -371,6 +371,7 @@ class PluginLoader:
obj = getattr(self._module_cache[path], self.class_name)
except AttributeError as e:
display.warning("Skipping plugin (%s) as it seems to be invalid: %s" % (path, to_unicode(e)))
continue
if self.base_class:
# The import path is hardcoded and should be the right place,