From 566d3c5ebf21d0c9eab06ba885eacc73f481a21d Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 23 Oct 2009 01:15:30 +0000 Subject: [PATCH] Fix possible exception when trying to load pre-1.2 plugins --- deluge/pluginmanagerbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/pluginmanagerbase.py b/deluge/pluginmanagerbase.py index 19f347797..0715e5953 100644 --- a/deluge/pluginmanagerbase.py +++ b/deluge/pluginmanagerbase.py @@ -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!")