dont die if plugin in prefs.state is not found on the filesystem

This commit is contained in:
Marcos Pinto 2007-11-24 22:46:43 +00:00
parent ee409d71c5
commit 9c3929f15e

View File

@ -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):