Fix possible exception when trying to load pre-1.2 plugins

This commit is contained in:
Andrew Resch 2009-10-23 01:15:30 +00:00
parent 6eee4fb31f
commit 566d3c5ebf
1 changed files with 1 additions and 1 deletions

View File

@ -131,8 +131,8 @@ class PluginManagerBase:
egg.activate()
for name in egg.get_entry_map(self.entry_name):
entry_point = egg.get_entry_info(self.entry_name, name)
cls = entry_point.load()
try:
cls = entry_point.load()
instance = cls(plugin_name.replace("-", "_"))
except Exception, e:
log.error("Unable to instantiate plugin!")