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
1 changed files with 7 additions and 3 deletions

View File

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