mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-25 00:53:59 +00:00
Fix: Picard crashes if a plugin can not be loaded.
Signed-off-by: brainz34 <brainz34@musicbrainz.org>
This commit is contained in:
@@ -150,7 +150,12 @@ class PluginManager(QtCore.QObject):
|
||||
|
||||
def load_plugin(self, name, plugindir):
|
||||
self.log.debug("Loading plugin %r", name)
|
||||
info = imp.find_module(name, [plugindir])
|
||||
try:
|
||||
info = imp.find_module(name, [plugindir])
|
||||
except ImportError:
|
||||
self.log.error("Failed loading plugin %r", name)
|
||||
return None
|
||||
|
||||
plugin = None
|
||||
try:
|
||||
index = None
|
||||
|
||||
Reference in New Issue
Block a user