mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
Fix possible exception when trying to load pre-1.2 plugins
This commit is contained in:
parent
4a996a1b41
commit
d4f2c2eda8
1 changed files with 1 additions and 1 deletions
|
@ -131,8 +131,8 @@ class PluginManagerBase:
|
||||||
egg.activate()
|
egg.activate()
|
||||||
for name in egg.get_entry_map(self.entry_name):
|
for name in egg.get_entry_map(self.entry_name):
|
||||||
entry_point = egg.get_entry_info(self.entry_name, name)
|
entry_point = egg.get_entry_info(self.entry_name, name)
|
||||||
cls = entry_point.load()
|
|
||||||
try:
|
try:
|
||||||
|
cls = entry_point.load()
|
||||||
instance = cls(plugin_name.replace("-", "_"))
|
instance = cls(plugin_name.replace("-", "_"))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.error("Unable to instantiate plugin!")
|
log.error("Unable to instantiate plugin!")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue