diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-05-21 12:53:27 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-05-21 12:53:27 -0500 |
commit | 5bdcf1ce5fb01aeca47d36f5b96924182c950869 (patch) | |
tree | 2b5f1158e16787ffcc9073ad808b9275bd1d171d /src | |
parent | f37fdb3e1374aa6742fb3cb902812132641a745d (diff) | |
download | bcfg2-5bdcf1ce5fb01aeca47d36f5b96924182c950869.tar.gz bcfg2-5bdcf1ce5fb01aeca47d36f5b96924182c950869.tar.bz2 bcfg2-5bdcf1ce5fb01aeca47d36f5b96924182c950869.zip |
Fix PY3K syntax error
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py b/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py index 88e5bea6c..e2af287db 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py @@ -86,7 +86,8 @@ class PackagesSources(Bcfg2.Server.Plugin.SingleXMLFileBacked, stype.title()).Server.Plugins.Packages, stype.title()) cls = getattr(module, "%sSource" % stype.title()) - except (ImportError, AttributeError), ex: + except (ImportError, AttributeError): + ex = sys.exc_info()[1] self.logger.error("Packages: Unknown source type %s (%s)" % (stype, ex)) return None |