dont die if plugin in prefs.state is not found on the filesystem
This commit is contained in:
parent
ee409d71c5
commit
9c3929f15e
|
@ -61,9 +61,13 @@ class PluginManager:
|
|||
mod = __import__(modname, globals(), locals(), [''])
|
||||
if 'deluge_init' in dir(mod):
|
||||
if modname != "TorrentPieces":
|
||||
print "Initialising plugin",modname
|
||||
mod.deluge_init(path)
|
||||
self.available_plugins[mod.plugin_name] = mod
|
||||
print "Initialising plugin", modname
|
||||
try:
|
||||
mod.deluge_init(path)
|
||||
except:
|
||||
print "Cant init plugin", modname
|
||||
else:
|
||||
self.available_plugins[mod.plugin_name] = mod
|
||||
|
||||
def get_available_plugins(self):
|
||||
return self.available_plugins.keys()
|
||||
|
|
Loading…
Reference in New Issue