From 120ddeff7e1b8956fe35a7a39fae87ddcac8301c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 22 Apr 2013 03:42:48 +0200 Subject: Improve Python 3.x compatibility Mechanical translation of deprecated constructs to 3.x compatible variants. Change-Id: I4988d0ac656903e0d0320aaa8361d4eeb774a0f9 --- openstack/common/plugin/pluginmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack/common/plugin/pluginmanager.py') diff --git a/openstack/common/plugin/pluginmanager.py b/openstack/common/plugin/pluginmanager.py index c958204..56064dd 100644 --- a/openstack/common/plugin/pluginmanager.py +++ b/openstack/common/plugin/pluginmanager.py @@ -62,7 +62,7 @@ class PluginManager(object): pluginclass = entrypoint.load() plugin = pluginclass(self._service_name) self.plugins.append(plugin) - except Exception, exc: + except Exception as exc: LOG.error(_("Failed to load plugin %(plug)s: %(exc)s") % {'plug': entrypoint, 'exc': exc}) -- cgit