mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-19 15:59:57 +00:00
dont die if plugin in prefs.state is not found on the filesystem
This commit is contained in:
parent
ee409d71c5
commit
9c3929f15e
@ -62,7 +62,11 @@ class PluginManager:
|
|||||||
if 'deluge_init' in dir(mod):
|
if 'deluge_init' in dir(mod):
|
||||||
if modname != "TorrentPieces":
|
if modname != "TorrentPieces":
|
||||||
print "Initialising plugin", modname
|
print "Initialising plugin", modname
|
||||||
|
try:
|
||||||
mod.deluge_init(path)
|
mod.deluge_init(path)
|
||||||
|
except:
|
||||||
|
print "Cant init plugin", modname
|
||||||
|
else:
|
||||||
self.available_plugins[mod.plugin_name] = mod
|
self.available_plugins[mod.plugin_name] = mod
|
||||||
|
|
||||||
def get_available_plugins(self):
|
def get_available_plugins(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user